"Bryan S. Tyson" wrote:
On Wed, 24 Jan 2001, Volker wrote:
If you just add a ! after the geometry specification it will, thusly: for image in *.jpg; do convert $image -geometry 160x120! thumb-$image This would be a bad thing to do as the appended ! changes the aspect ratio of the image, which is hardly ever something you'd want.
This will stretch/squeeze the width to 160 pixels and the height to 120 pixels exactly, even if the image was in a 'portrait' orientation, resulting in a distorted image. If the ! is left out, then the image is scaled *into* a region of that size, making it as large as possible, while still fitting entirely within the specified region, maintaining the aspect ratio. Sorry that isn't very clear ;-) Thanks again to everyone who replied, Chris -- __ _ -o)/ / (_)__ __ ____ __ Chris Reeves /\\ /__/ / _ \/ // /\ \/ / ICQ# 22219005 _\_v __/_/_//_/\_,_/ /_/\_\