I am implement taking photo function and I got an bellow issue.
After taking photo, I have to crop a thumbnail from original image to make avatar icon. But it's not good if user rotates the iPhone and take it. Step:
Turn on camera.
Rotate the iPhone to right ( it means landscape mode ).
- Take picture.
- I get UIImage with bad orientation. Therefore, thumbnail is not good.
How I can detect the orientation to rotate UIImage?
Thank you!
0 comments:
Post a Comment