This question already has an answer here:
I have a folder with JPG images, some of which have a height dimension larger than 1900 pixels. I need a command that will ignore the images with a height dimension lower than 1900 pixels, while resizing only images with a greater height.
This command does the resizing job, but in the process it still opens and re-saves the images it doesn't resize, which eats up HD and CPU bandwidth:
mogrify -resize 'x1900>' *.jpg
Is there a better command, that will ignore the images that fall below the pixel threshold?
The question is different from the question here: Use mogrify to resize large files while ignoring small ones
I want the command to determine which JPGs are larger than a certain height, taking the width out of the equation.