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:
- read image's exif data
- use canvas element transform image appropriate
- export canvas image image file
there's excellent writeup, including code samples, in this blog post.
Comments
Post a Comment