Skip to content Skip to sidebar Skip to footer

How To Save Exif Data After Bitmap Compression In Android

After taking a picture with the camera intent, I compress the bitmap to lower the file size. The problem is that after compression, it loses all EXIF data. I have no problem retrie

Solution 1:

I found a way in which we can save Exif data after bitmap compression hence posting it here if anyone come across this post.

You can use Apache's import for tiff and ExifTagConstants to add EXIF data back to the byte array image: org.apache.sanselan.formats.tiff.constants.TagInfo org.apache.sanselan.formats.tiff.constants.ExifTagConstants

Post a Comment for "How To Save Exif Data After Bitmap Compression In Android"