I just committed a migration of our metadata parsing library into ERAttachment as ERMetadataParser ... It's some of the oldest code I have here, so don't judge too much :) There is an ImageIO JNI implementation, an ImageMagick Commandline implementation, and a JAI/ Java2D implementation provided.

ERMetadataDirectorySet mds = ERMetadataParser.metadataParser().parseMetadata(file);
int width = mds.getWidth();
int height = mds.getHeight();
IERMetadataDirectory exif = mds.getDirectoryNamed(IERMetadataDirectory.EXIF);

ms


On Mar 25, 2009, at 9:37 AM, Miguel Arroz wrote:

Hi!

  Here goes.

  Yours

Miguel Arroz


<ImageInfo.java>

On 2009/03/25, at 11:53, Kieran Kelleher wrote:

Hi Miguel,

I have version 1.7 of this, so your reply motivated me to check for newer version which I find is 1.9, however it seems like the host is AWOL (schmidt.devlib.org), so download no longer possible. Why not zip the class and share it here if you have latest version.

Kieran

On Mar 24, 2009, at 9:07 PM, Miguel Arroz wrote:

Hi!

  We use ImageInfo: http://freshmeat.net/projects/imageinfo/

This is a Java class that looks at the image file/stream/ whatever and, very quickly (without loading the full image to RAM) gets some info, like file type, dimensions, etc. So far it has worked pretty well.

  Yours

Miguel Arroz

On 2009/03/24, at 22:56, Johnny Miller wrote:

Hello,

If you need to discover an image file's dimensions (height / width) would you advise using the java methods or is there a better Mac OS X centric way to accomplish that?

Thanks in advance,

Johnny
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/arroz%40guiamac.com

This email sent to [email protected]

...........................
http://www.survs.com

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%40mac.com

This email sent to [email protected]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/arroz%40guiamac.com

This email sent to [email protected]

...........................
http://www.survs.com

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com

This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to