Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileReader function ignores orientation of images uploaded from mobile. #1522

Closed
mitchrosu opened this issue Nov 30, 2015 · 3 comments
Closed

Comments

@mitchrosu
Copy link

For example, log in from your phone, in my case I'm using an iPhone, upload a picture you took in portrait and in the preview it will be rotated to display landscape. It also uploads in landscape view to the server, storing it with the wrong rotation permanently. I looked through the code and online and found this stackoverflow answer that seems to be the solution but I'm not entirely sure how to implement it: http://stackoverflow.com/questions/19463126/how-to-draw-photo-with-correct-orientation-in-canvas-after-capture-photo-by-usin

I'm pretty sure it involves the fileUpload.coffee file, something to do with readAsDataURL needing to be readFromBinaryFile to read the orientation properly.

I'll keep working on it but I'm still learning about meteor and coffeescript so if anyone has any ideas or manages to figure it out let me know!

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@AdrianoCahete
Copy link
Contributor

It's isn't a total RC's problem. I have this problem in my work:

When iOS save image as JPG, they put a info on image's header (or EXIF) who says the (wrong) orientation. Some softwares have internal fixes for that, but it's a iOS bug.

For more info:
http://stackoverflow.com/questions/10600613/ios-image-orientation-has-strange-behavior
http://stackoverflow.com/questions/22308921/fix-ios-picture-orientation-after-upload-php

@geekgonecrazy
Copy link
Member

Looks like this is ios issue like mentioned above. Closing

@mide
Copy link
Contributor

mide commented Feb 28, 2017

This looks very much related to #5404. (I found this issue searching for my problem, and wanted to help the next searcher).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants