gobackspaces/DLCImagePickerController — pull request #7 by sujal (2012-08-25 05:25:30+00:00)
Title: Rotation support

This allows landscape photos to get taken, rotating them in the interface when editing. The final saved image also keeps the metadata.

The core of the issue is that GPUImagePicture converts things to a CGImage which loses the metadata necessary to maintain rotation. So, I keep the image orientation around in the DLCImagePickerController and make sure it gets applied to the imageview.

Not sure if this is the best way to do this, but it works and is clean enough. Open to other, better ways, of course. Let me know if you have other ideas.

There are two other commits that got into this pull. They're minor, so hopefully they won't cause issues:

- make the output jpeg compression an instance var so devs can change it easily or expose controls for it
- fix camera rotation on iOS6 (it's conditionally compiled in, so shouldn't cause any extra code if you're compiling with iOS5. It's benign if it were compiled in anyway).