I am using HTML5 file api on mobile web app for image uploading utility.
I am capturing image using camera and upload it to server.
Problem is that if I capture portrait image the uploaded image automatically converted to Landscape.
You'll need to transform the image to correct the orientation. Fortunately, the image should include EXIF data that you can use to do that. If you like, you can do this before the image is uploaded to your server:
There's an excellent writeup, including code samples, in this blog post.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With