Editing Images Trying to Save New Image Out In Same Display Orientation
I posted another reply on an alternate thread, but I thought this might be common enough to deserve it's own topical thread. I have edited image data. The image data matches the orientation of that which it got from the Iphone. What this should mean is that the data will display in portrait (like the input image) after I'm done editing. What really happens is that the data displays in landscape. Why? The original data is in fact landscape. Apple has a method to communicate via exif header or internal data to the display classes for rotation.
I believe the whole issue centers on a read only flag under UIImage =>imageOrientation. However I have not figured out how to get this set up for the output UIImage. It would seem like a huge waste of processing time to require an actual data rotation when apple obviously doesn't do this. I would think there should be a way to set this up...maybe in the coregraphics layer when I'm actually editing the pixels.....
|