I want to reduce the size of my JPG images to the same total pixel size (e.g. 6MPx) no matter of the input size or ratio.
Of course mogrify
or convert
can resize:
This ...
mogrify -resize 3000x3000 file.jpg
... will give me 6MPx for pictures with ratio 3:2.
But this won't work with unusual ratios like e.g. panoramas.
Q: How to use mogrify
/ convert
to get a specified target pixel size ?