I am browsing the web but no way to find how to get metadata from a picture.
Does anyone has an idea ?
I can't see anything in the Bitmap/BitmapFactory/BitmapFactory.Options documentation that would give me a hint.
I would like to retrieve standard information such as :
and maybe more.
Any idea ?
Just right-click on the photo in question and select “Properties”. Click on the “Details” tab and scroll down—you'll see all kinds of information about the camera used, and the settings the photo was taken with.
Metadata is stored in two main places: Internally – embedded in the image file, in formats such as JPEG, DNG, PNG, TIFF … Externally – outside the image file in a digital asset management system (DAM) or in a “sidecar” file (such as for XMP data) or an external news exchange format document as specified by the IPTC.
You can get at least the size of the image by setting BitmapFactory.Options.inJustDecodeBounds to true.
If the image is in the MediaStore, you might be able to get more information.
According to this thread
http://osdir.com/ml/AndroidDevelopers/2009-02/msg00821.html
you have to use ImageManager
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With