Android-Exif-Extended
Android-Exif-Extended copied to clipboard
how create ExifTag
when ExifTag tagOrientation = exifInterface.getTag (ExifInterface.TAG_ORIENTATION); is always null
ExifInterface exifInterface = new ExifInterface();
exifInterface.readExif( path, ExifInterface.Options.OPTION_ALL );
ExifTag tagOrientation = exifInterface.getTag(ExifInterface.TAG_ORIENTATION);
as I can create a tag for orientation
Did you found solution here ?
You need to use buildTag()
and setTag()
.
ExifInterface exif = new ExifInterface();
exif.setTag(exif.buildTag(ExifInterface.TAG_ORIENTATION, ExifInterface.getOrientationValueForRotation(rotation)));
exif.writeExif(...);