Camera Orientation

We’re trying to make use of the camera API but it seems to be a dead end for our use case, and here’s why:

We are taking photos with the iPhone and then uploading them to a web site for processing by our server side components.

But the current iPhone camera implementation uses the “hardware button to the right” orientation for saved pictures with the real orientation saved in the XIF data for the photo.

So everything we upload fails to be process on the server-side because the server doesn’t know which orientation the original real picture was in. I won’t go into the actual processing but suffice it to say we need it to be uploaded in the correct orientation from the device.

This article explains why the problem exists but its solution is aimed at a specific product/site not iPhone coding in general.

I’ve found some purported resolutions via google such as this.

But that has two problems I can see:

  1. It appears to be an xcode solution (not Corona obviously);
  2. That’s changing the loaded/created image orientation not the actual photo (as far as I can tell).

So my question is - does anyone know how to fix the orientation issue or do I have to resort to the costly Enterprise edition so I can fix it myself (or can’t it be done there either?)? [import]uid: 13063 topic_id: 35815 reply_id: 335815[/import]

So after I posted this with no responses I googled (native forum search found nothing for EXIF before I did) and I see this has been asked for previously and deemed a low priority for native inclusion (I posted a feature request for it anyway).

A previous poster had mentioned the TagMe lua library which doesn’t quite do it - so I guess I have to do it myself.

But before I do I figured I’d ask (plead) for anyone that has already made it work for reading orientation to share up their final solution.

[import]uid: 13063 topic_id: 35815 reply_id: 142496[/import]

So after I posted this with no responses I googled (native forum search found nothing for EXIF before I did) and I see this has been asked for previously and deemed a low priority for native inclusion (I posted a feature request for it anyway).

A previous poster had mentioned the TagMe lua library which doesn’t quite do it - so I guess I have to do it myself.

But before I do I figured I’d ask (plead) for anyone that has already made it work for reading orientation to share up their final solution.

[import]uid: 13063 topic_id: 35815 reply_id: 142496[/import]