summaryrefslogtreecommitdiff
path: root/doc/tutorials.rst
diff options
context:
space:
mode:
authorChristophe Monniez <moc@odoo.com>2021-02-05 16:55:21 +0000
committerChristophe Monniez <moc@odoo.com>2021-02-09 11:32:23 +0000
commitbfd3f857b44f31f8077182d10cab869f42076464 (patch)
treea9fe3dd94bb970ec25a3246b2f412e91603571e3 /doc/tutorials.rst
parent550906d48682996cb47142bb0d519fdbfac69642 (diff)
[FIX] tools: prevent call to pillow exif_transpose image method
In a previous fix [0], the call to exif_transpose was kept to allow rotation of images format different than `JPEG`. After a small test, it appeared that the call would crash if the image in another format had the same `LensInfo` tag. So it's safer to not call this method at all. With this commit, the rotation tag is retrieved disregarding the file format by using the `getexif` method if available, falling back to the private method for Pillow < 6 support. As a bonus, a test is also added with a small embedded `JPEG` image, crafted with an `Orientation` exif tag and, for reference, the `LensInfo`tag that caused so much trouble. The fix referenced in [0] was not forward-ported as it was only moving the code the is completely removed in the present. [0] b83c48d5c48954193 closes odoo/odoo#65793 X-original-commit: 38f696dfa5134d93b5a3a1c0647aa8f8c1bd18c9 Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
Diffstat (limited to 'doc/tutorials.rst')
0 files changed, 0 insertions, 0 deletions