Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Image.getProperty() and JPEG files




On 20 Apr 2007, at 17:03, Paul J. Lucas wrote:

On Apr 20, 2007, at 8:54 AM, Jerry wrote:

I don't think the AWT JEPG decoder handles comments. If you look at the JPEG Decoder source code in the JDK , there seems to be no mention of setting properties at all.

You might have better luck using javax.imageio.ImageIO:

http://java.sun.com/j2se/1.4.2/docs/api/javax/imageio/metadata/doc- files/jpeg_metadata.html

IMHO, the ImageIO package is over-engineered yet incomplete, not to mention a fairly dense API to learn.


Much better is:

	http://www.drewnoakes.com/code/exif/

Of the top of my head, I don't recall whether it handles the JPEG comment field specifically, however.

Definitely - it baffles me why Java has three sets of JPEG decoders and encoders, all with weird bugs and limitations. I spent some time writing an ImageIO plugin which used QTJava to read and write any image format supported by QuickTime, but the weird ImageIO architecture and the massive amount of work needed to support image metadata ensured that I never managed to get it working for anything other than basic ARGB image I/O.


Jerry

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >Image.getProperty() and JPEG files (From: Kerry Shetline <email@hidden>)
 >Re: Image.getProperty() and JPEG files (From: Jerry <email@hidden>)
 >Re: Image.getProperty() and JPEG files (From: "Paul J. Lucas" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.