From 34ab86865e39ec1a2e50878f453722d8ea19a6d6 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Tue, 17 Nov 2020 00:23:20 +0100 Subject: [PATCH] thumb: apply exif orientation Match expected results (and modern browser rendering of originals) for common rotation on phone submissions. May not match photoswipe rendering, which depends on browser support. Best to apply rotation without tags for now (exifautotran). --- thumb/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/thumb/index.php b/thumb/index.php index d296fbf..6381259 100644 --- a/thumb/index.php +++ b/thumb/index.php @@ -90,6 +90,7 @@ function mkthumb_exec($source, $target, $width, $height) '-delete', '1--1', # static '-trim', '-background', 'white', '-layers', 'flatten', # opaque + '-auto-orient', # apply exif rotation '-interlace', 'plane', # progressive '-strip', '-taint', # omit metadata '-sampling-factor', '4:2:0', '-colorspace', 'sRGB', # half chroma -- 2.30.0