From e2c2a2fc696a12d3fdd697e5da5354437a290047 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Fri, 23 Feb 2018 12:29:25 +0100 Subject: [FIX] mail: rotate image in preview MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When uploading an image as attachment, the document viewer doesn't support the EXIF data. Therefore, a picture taken with a non-zero angle will not appear with the right orientation (preview or full-size image). Unfortunately, supporting EXIF data is not trivial in Python or JavaScript without external libraries. Therefore, we add a rotate button which allows the user to rotate the image by 90°. Moreover, we add the `image-orientation: from-image` CSS property, which is only supported by Firefox. opw-1814407 --- addons/mail/static/src/xml/thread.xml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'addons/mail/static/src/xml/thread.xml') diff --git a/addons/mail/static/src/xml/thread.xml b/addons/mail/static/src/xml/thread.xml index 6f5f5e71cfe..8408e149113 100644 --- a/addons/mail/static/src/xml/thread.xml +++ b/addons/mail/static/src/xml/thread.xml @@ -50,6 +50,11 @@