In my iOS application, I write, I am dealing with PNG, because I am dealing with an alpha channel. For some reason, I can upload PNG to my imageView just fine, but when it comes time to either copy the image from my application (on the PasteBoard) or save the image in a camera roll, the image rotates 90 degrees.
I searched everywhere on this, and one of the things that I found out is that if I used JPEG I would not have this problem (it sounds) due to EXIF information.
My application has full copy / paste functionality, and here is a kicker (I will write it step by step to make it easier to follow):
- Go to the camera roll and copy the image.
- Go into my application and click "Paste", the image is inserted in order, and I can do this all day.
- Select the copy function that I performed, and then click "Paste", and the image is inserted, but rotated.
I am 100% sure that my code for copying and pasting is not what is wrong here, because if I go back to step 2 above and click save, the photo will be saved in my library, but it will be rotated 90 degrees!
What's even weirder is that it works great with images downloaded from the Internet, but it hit or missed the images that I manually took with the phone. Some of them work, some of them don’t ...
Does anyone have any thoughts on this? Any possible work I can use? I am pretty sure about the code because it works on about 75% of my images. I can send the code on request, though.
ios objective-c iphone png exif
Boeckm Apr 24 2018-12-12T00: 00Z
source share