Resize image, but keep proportion
Posted: 2007-01-13T10:59:52-07:00
How can I use the command line 'convert' tool to resize an image with a maximum size and keep proportion. For example: I have a 1024x768 image ("test.jpg") that I want to make a thumbnail of ("thumb-test.jpg"). I say the thumbnail can be (at most) 320x320. The resulting image should then have the size of 320x240. And same thing if the image was 768x1024 - to result in 240x320. Thanks in advance!