From How to easily resize images via command-line? I know I can use this command to resize an image in bash:
convert -resize 1024X768 source.png dest.jpg
But I'm stuck at only providing the width and keeping the aspect ratio.
man convert does not provide any help for -resize flag.
I want something like convert -resize 1024 -keep-ratio source.png dest.png
What would be the command?
!signifiesdon't keep aspect ratio– Hannu Dec 26 '22 at 11:18!, – Hannu Dec 26 '22 at 11:30!in my question. – Saeed Neamati Dec 26 '22 at 11:32