You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.
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 ?
The text was updated successfully, but these errors were encountered:
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 ?
The text was updated successfully, but these errors were encountered: