|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.coobird.thumbnailator.util.exif.ExifUtils
public final class ExifUtils
An utility class used to obtain the orientation information from a given Exif metadata.
| Method Summary | |
|---|---|
static Orientation |
getExifOrientation(ImageReader reader,
int imageIndex)
Returns the orientation obtained from the Exif metadata. |
static Orientation |
getOrientationFromExif(byte[] exifData)
Returns the orientation obtained from the Exif metadata. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Orientation getExifOrientation(ImageReader reader,
int imageIndex)
throws IOException
reader - An ImageReader which is reading the
target image.imageIndex - The index of the image from which the Exif
metadata should be read from.
Orientation enum.
Returns null if no orientation is found.
IOException - When an error occurs during reading.
IllegalArgumentException - If the ImageReader does not
have the target image set, or if the
reader does not have a JPEG open.public static Orientation getOrientationFromExif(byte[] exifData)
exifData - A byte array containing Exif data.
Orientation enum.
Returns null if no orientation is found.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||