Resize and pad instead of stretch
Posted: 2009-04-10T09:48:02-07:00
If I do this:
It will result in a 100x100 image, but if the aspect ratio has changed, the image will be stretched to fit the new ratio. Is there anyway to say "reduce so one of the dimensions to fits the aspect ratio, and pad with black (or white or something else) so that the picture is not stretched"?
Thanks,
Dave
Code: Select all
convert File.jpg -resize 100x100\! Output.jpg
Thanks,
Dave