patbenatar / showoff

A jQuery plugin that uses the HTML5 FileReader API to make it easy to preview images before uploading them to the server.
http://patbenatar.github.com/showoff
4 stars 1 forks source link

Preview doesn't respect EXIF orientation #2

Open bloudermilk opened 10 years ago

bloudermilk commented 10 years ago

When the orientation of the photo is altered via EXIF meta tags the preview does not accurately represent the image's appearance.

patbenatar commented 10 years ago

@bloudermilk ohai! Interesting... If you take a photo with EXIF orientation and put it into a regular img tag, does it honor it?

bloudermilk commented 10 years ago

@patbenatar hai! It seems that browsers don't honor it either. That's surprising!

patbenatar commented 10 years ago

@bloudermilk So if the user selects a photo that's been manipulated in this way, and uploads it, when rendered back out to the screen it wouldn't honor the orientation, unless if you did some custom image processing on the backend...?

bloudermilk commented 10 years ago

@patbenatar yeah I don't think that would make much sense. Not as a default, anyway. Maybe as a convenience option? At least on the PHP backend I'm using I have to add support manually when processing.

patbenatar commented 10 years ago

PHP :trollface:

patbenatar commented 10 years ago

@bloudermilk I agree, an option would be cool, in case you have a sweet WordPress plugin installed that processes the images

bloudermilk commented 10 years ago

:middlefingerup:

patbenatar commented 10 years ago

:facepunch:

bloudermilk commented 10 years ago

:smile:

bloudermilk commented 10 years ago

@patbenatar orientation support is out of scope for the feature I'm working on so unless you plan on adding it I think it's safe to close this

patbenatar commented 10 years ago

@bloudermilk I'll keep here for a day when I'm bored — handling EXIF in JS sounds like fun!