Matt,

BINGO! exiftool has a wealth of info; specifically it has the Orientation tag which is what I was looking for (not to mention access to all of the photo's GPS data too).

        I don't know how I could have overlooked that before.

Unfortunately, we have WebObjects running on Mac OS X Server 10.4.11, which doesn't have the exiftool command, but we can fix that.

Many thanks,
Joe

On Jul 6, 2010, at 15:54:04, Matthew Ness wrote:

We use MediaRich to do most of our heavy lifting.

exiftool should do what you want too.

Cheers,

Matt


On 6 Jul 2010 19:50, "Joe Moreno" <[email protected]> wrote:

*S**ummary*
Can anyone recommend either a Java library or command line app that can
look
into a JPEG's EXIF data in order to determine its orientation (i.e. which way is up)? This seems like it should be an easy problem to solve, but I
haven't had any luck finding the answer.

**
*B**ackground*
Some of you may have noticed that photos taken with iOS 4 no longer
automatically rotate "right side up". Instead, the orientation is placed
in
the EXIF data. Software rendering the photo must look at the EXIF data in order to correctly display the photo. This issue is easily demonstrated by
snapping a photo in landscape mode, with an iOS 4 iPhone, and then
e-mailing
it to yourself and viewing it in a version of Mail prior to Snow Leopard where you'll see that the image is sideways. (See attached screen shot.)

*WebObjects & SIPS*
I have a WebObjects project which worked beautifully with the iPhone until the release of iOS 4. The project uses Mac OS X's sips command line app to resize photos (sips can also rotate images and it's highly optimized for
Mac
OS X – I have yet to find anything else that's faster

Sips only allows you to examine certain EXIF data tags; and JPEG
orientation
isn't one of them.

Any help is greatly appreciated.

Cheers,
Joe




_______________________________________________
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