I have (what I think are) incohérent results for the same input file when I use -auto-orient:
The following command:
Code: Select all
convert -define registry:temporary-path=/tmp/ -limit memory 8GiB -auto-orient \( -size 1686x3000 -resize 843x1500 tile:pattern:checkerboard -brightness-contrast 40.0 \) \( -density 95 /tmp/orientation.jpg[0] -resize 843x1500! -gravity center -background white -extent 843x1500 \) -set units PixelsPerInch -density 72 -quality 80.0 -layers flatten -strip /tmp/out.jpg
Code: Select all
convert -define registry:temporary-path=/tmp/ -limit memory 8GiB -auto-orient \( -density 95 /tmp/orientation.jpg[0] -resize 843x1500! -gravity center -background white -extent 843x1500 \) -set units PixelsPerInch -density 72 -quality 80.0 -layers flatten -strip /tmp/out.jpg
Source image (jpg file):
https://taktik.media/FwHI2jFF2q
Can you explain me why the addition of the checkerboard part cancels the auto-orient, and how to fix the problem? Thanks in advance!