开发者

iPhone AVFoundation image EXIF orientation

I'm using AVFoundation to control the camera in my app and it's working perfectly... up til now.

The images are saved into the library with no problems and all look perfect but when I then upload them to Facebook they're the wrong way round!

This happens whether I upload them from within my app or from the Facebook app on my iPhone.

I have tried setting the EXIF data using the CMSetAttachment method but this just makes it even worse. It then displays incorrectly on the phone and on Facebook.

Has anyone found any way of getting this to 开发者_JS百科work properly?

Thanks


It is very simple.

Facebook/Windows.. has it wrong!

Mac / Iphone do interogate the exif on every picture and act accordingly.

Windows machines "sometimes" (in fact always) ignore exifs when previewing a photo.

In order to check that what I am saying is correct, do the following:

Try transfering the "faulty" picture from a MAC OS / Iphone OS to a WINDOWS OS using any messenger utility which has file transfer capability.

Hit preview in both operating systems.

Watch Windows make a fool of itself.

If you understand this.. you can make some workarounds.. up to a certain level.. as to try and rotate the picture accordingly before upload.

Good luck.

Windows sucks!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜