private void setupImageFormatEntries(ImageUriProvider imageUriProvider) {
    mImageFormatEntries =
        new ImageFormatEntry[] {
          new ImageFormatEntry(
              R.string.format_name_jpeg_landscape,
              imageUriProvider.createSampleUri(
                  ImageUriProvider.ImageSize.XXL, ImageUriProvider.Orientation.LANDSCAPE)),
          new ImageFormatEntry(
              R.string.format_name_jpeg_portrait,
              imageUriProvider.createSampleUri(
                  ImageUriProvider.ImageSize.XXL, ImageUriProvider.Orientation.PORTRAIT)),
          new ImageFormatEntry(
              R.string.format_name_png_landscape,
              imageUriProvider.createPngUri(
                  ImageUriProvider.Orientation.LANDSCAPE, ImageUriProvider.UriModification.NONE)),
          new ImageFormatEntry(
              R.string.format_name_png_portrait,
              imageUriProvider.createPngUri(
                  ImageUriProvider.Orientation.PORTRAIT, ImageUriProvider.UriModification.NONE)),
          new ImageFormatEntry(R.string.format_name_webp, imageUriProvider.createWebpStaticUri()),
          new ImageFormatEntry(
              R.string.format_name_animated_webp, imageUriProvider.createWebpAnimatedUri()),
          new ImageFormatEntry(
              R.string.format_name_translucent_webp, imageUriProvider.createWebpTranslucentUri()),
        };
  }
Fragment that illustrates how to use the image pipeline directly in order to create
notifications.
samples/showcase/src/main/java/com/facebook/fresco/samples/showcase/imagepipeline/ImagePipelineResizingFragment.java