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

how create ExifTag

Open qcfer35 opened this issue 10 years ago • 2 comments

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

qcfer35 avatar Dec 18 '14 20:12 qcfer35

Did you found solution here ?

samy-baili avatar Feb 16 '16 08:02 samy-baili

You need to use buildTag() and setTag().

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

Robyer avatar Aug 18 '16 07:08 Robyer