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>' *.jpgIs 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 onesI want the command to determine which JPGs are larger than a certain height, taking the width out of the equation.
Resizing/Processing only images in folder larger than specified height?
images;image manipulation;mogrify
With zshhigher() {  local h  h=$(identify -format %h - < $REPLY) &&    ((h > $1))}mogrify -resize 'x1900>' ./*.jpg(.e:higher 1900:)