From 4991a5efbd0c55f43b66b10f131ddc6e054b6392 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Sun, 25 Feb 2024 09:15:49 +0100 Subject: Disable automatic image rotation in browser and fix our own transforms When I implemented the initial transformations I did not test them all, and also did not know that the default for a long time has been to auto-rotate images per EXIF in the browser so the poor images got rotated twice. Used example images from https://github.com/recurser/exif-orientation-examples to make sure to check all rotations this time. --- example/static/js/media.js | 1 + 1 file changed, 1 insertion(+) (limited to 'example/static') diff --git a/example/static/js/media.js b/example/static/js/media.js index 5f0f314..d07ce49 100644 --- a/example/static/js/media.js +++ b/example/static/js/media.js @@ -55,6 +55,7 @@ function show_media(index, push_state) { video.style.display = 'none'; img.onload = function() { img.style.transform = m.transform; }; img.src = m.src; + img.style.imageOrientation = 'none'; img.style.display = 'inline'; } else { img.style.display = 'none'; -- cgit v1.2.3-70-g09d2