If I use:
Code: Select all
convert -colorspace RGB -strip -resample 300x300 in.tif out.jpg
So I'm after a sort of hybrid that does the same as some of the 'resize image if its bigger than ...' but does it to the resolution instead.
ie 600dpi resolution image that is 1in wide and 1 in high (has 600*600pixels) becomes a 300dpi image that is 1in wide and 1in high (has 300*300 pixels)
but a 100 dpi resolution image of any size will pass through unchanged
Note that this is running against a folder of incoming images which can be any resolution and and pixel dimension.
Any help appreciated