John Bokma Java
freelance Perl programmer

Comments: Obtaining image metadata

1 comment

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.

Advertisements:    Python Programmer for hire    Custom Software Development    Perl Coder For Hire

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

Advertisements:    Perl Programmer for Hire    Python Coder available    Custom Software Development

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].