From: Mischa POSLAWSKY Date: Mon, 16 Nov 2020 23:23:20 +0000 (+0100) Subject: thumb: apply exif orientation X-Git-Tag: v4.5~19 X-Git-Url: http://git.shiar.nl/minimedit.git/commitdiff_plain/34ab86865e39ec1a2e50878f453722d8ea19a6d6?hp=dcfc97617cdb6307e14752d7fb10f00733737616 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). --- 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