is there a way to choose the resolution (ppi) based on the final size in millimeters?
Right now, I'm using a script like this to get 550 x 550 mm output (the image is 4300 x 4300 px) :
Code: Select all
echo (4300*2.54/55) | tr -d $'\r' | bc -l
Code: Select all
convert -density 198.58181818181818181818 -units PixelsPerInch input.tif output.jpg
exiftool -XResolution=198.58181818181818181818 -YResolution=198.58181818181818181818 output.jpg
Best,
Lars-Daniel