code: private boolean isRenditionMatchExtension(MediaFormat mediaFormat) {
      for (String extension : mediaFormat.getExtensions()) {
        if (FileExtension.isImage(extension)) {
          return true;
        }
      }
      return false;
    }
docs: Checks if one of the extensions of the given media format are supported for renditions.
  @param mediaFormat Media format
  @return true if supported extension found