Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

JPEG Images are not properly oriented #641

Open
aenario opened this issue Sep 21, 2015 · 1 comment
Open

JPEG Images are not properly oriented #641

aenario opened this issue Sep 21, 2015 · 1 comment

Comments

@aenario
Copy link
Contributor

aenario commented Sep 21, 2015

The images we get from IMAP can be EXIF-oriented, ie. The pixels draw an image in the wrong orientation, but an EXIF metadata fix it.

However browsers doesn't take this property into account when displaying an <img>, so the image appears wrongly oriented in the cozy-email client. There is a CSS property to force the browser to do it but it only works in FF. (http://caniuse.com/#feat=css-image-orientation)

We will need to process JPG attachments as we do in the cozy-photos application : storing EXIF orientation when importing images and then using CSS transforms to apply them in the client. Note : we will also need to fix width/height, they are often hard-coded in the email HTML.

@poupotte, if this is needed in two application, may be we should move it to the DS, somewhere in binary/thumbs management ?

@poupotte
Copy link
Contributor

I agree with you @aenario , I open an issue on DS.

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

No branches or pull requests

2 participants