public static ImageFormat getImageFormatForMime(String mime) {
    for (ImageFormat type : VALUES) {
      if (type.mime.equals(mime)) {
        return type;
      }
    }
    return null;
  }
Formats of images we download from imgur.
samples/comparison/src/main/java/com/facebook/samples/comparison/urlsfetcher/ImageFormat.java