Perl programmer for hire: download my resume (PDF).
John Bokma Java
freelance Perl programmer

Comments: Obtaining image metadata

2 comments

The Java program given below reads the metadata from one or more image files given as arguments to the program. The metadata is read into an XML Document Object Model (DOM) tree, and a simple method is used to print each element and attributes (if present). The code for printing the tree is roughly based on the example given in Handling Metadata (Java Image I/O API Guide).

Read the rest of Obtaining image metadata.

Comments

Thanks for this. Was able to use it as a checker for corrupt images for a resizer servlet I was working on. If the file is corrupt, the metadata call throws up exceptions.

Posted by dvinnen at 02:13 GMT on 26 September 2008

I am creating a content based image retrieval where input will be a jpeg image and the application should retrieve related images based on the content. so how can i compare the metadata of two images....??

Posted by jethin at 03:55 GMT on 30 March 2011

Post a comment

Note that your comment doesn't show up immediately. I review each comment before I add it to this site.

Check the Follow this page option if you want to receive an email each time a comment is posted to this page, including yours. A link to turn this option off will be included with each email.

Internet adresses will be converted automatically. You can use the following notation to specify anchor text for a link: [url=http://example.com/]example text[/url].