ios6 - Wrong orientation when image captured by HTML5 file api on IOS 6.0 -


i using html5 file api on mobile web app image uploading utility.
capturing image using camera , upload server.
problem if capture portrait image uploaded image automatically converted landscape.

you'll need transform image correct orientation. fortunately, image should include exif data can use that. if like, can before image uploaded server:

  1. read image's exif data
  2. use canvas element transform image appropriate
  3. export canvas image image file

there's excellent writeup, including code samples, in this blog post.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -