Android-Exif-Extended icon indicating copy to clipboard operation
Android-Exif-Extended copied to clipboard

v1.0.6. writeExif(String dstFilename) does not save exif metadata

Open kestasb opened this issue 9 years ago • 1 comments

If I set a new TAG_ORIENTATION value using exifInterface.setTagValue(ExifInterface.TAG_ORIENTATION, newValue); and then use exifInterface.writeExif(dstFilename), new orientation value is not saved.

kestasb avatar Aug 27 '15 13:08 kestasb

You need to use buildTag() and setTag() instead of setTagValue().

ExifInterface exif = new ExifInterface();
exif.setTag(exif.buildTag(ExifInterface.TAG_ORIENTATION, ExifInterface.getOrientationValueForRotation(rotation)));
exif.writeExif(...);

Robyer avatar Aug 18 '16 07:08 Robyer