Class ExifHelper

java.lang.Object
org.sejda.impl.sambox.component.ExifHelper

public class ExifHelper extends Object
Reads exif orientation of an image and determines if the image should be rotated or not.

Based on https://stackoverflow.com/questions/5905868/how-to-rotate-jpeg-images-based-on-the-orientation-metadata

  • Constructor Details

    • ExifHelper

      public ExifHelper()
  • Method Details

    • getRotationBasedOnExifOrientation

      public static int getRotationBasedOnExifOrientation(InputStream inputStream)
    • getRotationBasedOnExifOrientation

      public static int getRotationBasedOnExifOrientation(Source<?> source)