Skip to content

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

@mitchrosu

Description

@mitchrosu

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions