iphone - How to send a picture via POST with correct orientation -


i want send image saas via http post request. image taken iphone camera or choosen iphone library. problem iphone seems encode orientation of image in exif data, when try send image via post service elaborate wrong orientation (it isn't smart check exif tag first). can post snippet check exif (if any) , make new image correct orientation?

thank help.

at risk of encouraging copy-paste programming, i'll use code found here same thing. it'll take uiimage, check exif data, , return new uiimage has been adjusted match service won't need worry it.

just keep in mind may need tweak match specific needs. it's starting point though.


Comments

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -