@Override
          public void onIntermediateImageFailed(long id, @Nullable Throwable throwable) {
            mDebugOutput.append(
                String.format(
                    Locale.getDefault(),
                    "onIntermediateImageFailed, %s\n",
                    throwable.getMessage()));
          }
Progressive JPEG example that logs which frames of a progressive JPEG are rendered
samples/showcase/src/main/java/com/facebook/fresco/samples/showcase/imageformat/pjpeg/ImageFormatProgressiveJpegFragment.java