public final class ExifHelper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ExifHelper.Degrees |
Modifier and Type | Field and Description |
---|---|
static Set<String> |
exifTagsToCopy
Exif parameters which will be copied from original image to processed and saved output image
|
static int |
ROTATE_0 |
static int |
ROTATE_180 |
static int |
ROTATE_270 |
static int |
ROTATE_90 |
Modifier and Type | Method and Description |
---|---|
static void |
copyExifParameters(ExifInterface originalExif,
String filePath)
Copy exif parameters expect sizes, image type, orientation from original image to output image.
|
static int |
exifToDegrees(int exifOrientation)
Returns degree base on EXIF orientation value.
|
static Matrix |
rotateImage(ExifInterface originalExif) |
public static final Set<String> exifTagsToCopy
public static final int ROTATE_0
public static final int ROTATE_90
public static final int ROTATE_180
public static final int ROTATE_270
public static int exifToDegrees(int exifOrientation)
exifOrientation
- orientation retrieved from exif object.public static void copyExifParameters(ExifInterface originalExif, String filePath) throws IOException
originalExif
- exif parameters read form source image.filePath
- path to created image file where exif parameters from originalExif will be saved.IOException
public static Matrix rotateImage(ExifInterface originalExif)