Resize Image with restrictions
Posted: 2018-08-14T02:00:38-07:00
Hello,
I have a customer that request an ImageMagick command that convert an image to a jpeg. He told me :
"We want JPG files with 2000 pixels at least for the smallest side and 3000 pixels at least for the bigger side."
I thought I could do it with something like widthxheight^ (found : http://www.imagemagick.org/script/comma ... p#geometry) if I knew the image orientation first, but unfortunately they want to provide both landscape and portait image to the same command.
Did someone have an idea on how to match the customer need?
Many thanks in advance,
Regards,
MisterJpa
I have a customer that request an ImageMagick command that convert an image to a jpeg. He told me :
"We want JPG files with 2000 pixels at least for the smallest side and 3000 pixels at least for the bigger side."
I thought I could do it with something like widthxheight^ (found : http://www.imagemagick.org/script/comma ... p#geometry) if I knew the image orientation first, but unfortunately they want to provide both landscape and portait image to the same command.
Did someone have an idea on how to match the customer need?
Many thanks in advance,
Regards,
MisterJpa