Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get Meta Data of Image - Android

http://www.isco.com/webproductimages/appBnr/bnr1.jpg

I've used a website to see the metadata of a image. In this website, it shows all info of image. I want to know how to get the "Title" tag of above image in android.

I found here the similiar question for iOS only: How to get image metadata in ios

However I don't know how to get "Meta data" of image on android. ExifInterface only gives some informations. But I'm unable to get "Title" tag with it.

Can you provide any code snippet for get meta data in android for image?

like image 982
RVG Avatar asked Sep 27 '12 14:09

RVG


People also ask

How do I get metadata from a picture on Android?

Swipe up on the photo or tap the three-dot menu icon in the top right corner. You'll see the photo's EXIF data displayed in a nice, readable format that includes the following data: Date and time taken. Image name, size, and resolution.

How do I view metadata on Android?

Follow these steps to view EXIF data on your Android smartphone. Open Google Photos on the phone - install it if needed. Open any photo and tap the i icon. This will show you all the EXIF data you need.

How do I view EXIF metadata?

On a Windows PC using File Explorer right-click on the file you want to see the data for. You will see a window pop up with various options. Click on Properties and then on Details. This will bring up the EXIF data for that photo.


1 Answers

Download metadata extractor from the link given here ...... click to download the library choose the version 2.5.0.RC-3.zip

Extract the jar Folder

and import jar into libs folder in your poject and then execute the below code

        try {
            InputStream is = new URL("your image url").openStream();
            BufferedInputStream bis = new BufferedInputStream(is);
            Metadata metadata = ImageMetadataReader.readMetadata(bis,true);


    for (Directory directory : metadata.getDirectories()) {
    for (Tag tag : directory.getTags()) {
        System.out.println(tag);
    }
 }

            }
        catch (ImageProcessingException e){}
        catch (IOException e) {}
like image 63
Venkatesh S Avatar answered Oct 05 '22 23:10

Venkatesh S