How can I read the metadata of a JPG image in Java using BufferedImage, and then encode it as JSON?
How can I read the metadata of a JPG image in Java using BufferedImage
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The MetadataExtractor can be used to extract metadata like Exif, IPTC… and more, http://www.drewnoakes.com/code/exif/
The following snippet will print metadata found in file:
This snippet uses the latest release candidate, http://code.google.com/p/metadata-extractor/downloads/detail?name=metadata-extractor-2.5.0-RC3.zip&can=2&q=
At least that’s a start with the extraction, which I believe is the hard part.