Open kestasb opened 9 years ago
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(...);
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.