On Fri, 2012-06-15 at 04:34 +0200, Arnt Karlsen wrote: > On Thu, 14 Jun 2012 01:37:18 -0500, Christofer wrote in message > <caoevnyujsmftaqze+suzcvhjnvk48hnvjlngofzg5bxu-xv...@mail.gmail.com>: > > > > It's much simpler to do: > > > > > > mogrify -resize '800x600<' testimage.jpg > > > > > > or to limit it to 800 in any dimension > > > > > > mogrify -resize '800x800<' testimage.jpg > > > > > > (These commands preserve aspect ratio and only resize if image is > > > greater than the given dimensions.) > > > > Well, color me impressed! I didn't know about that notation. That > > certainly would have saved me a lot of pain with some shell scripts I > > wrote awhile back for image management! I'll keep that in my bag of > > tricks and thank you for the tip! > > ..I lost you guys here; is the new trick in the bag the use > of mogrify, or is it putting the "<" in '800x600<', inside > the single quotes, typo style like????? >
It's the < but as that is treated specially by shells, you need to include the argument in '' or take other precautions. imagemagic has a wealth of options, it's well worth reading them whenever you have an image manipulation task. [1] -- Tixy [1] http://www.imagemagick.org/script/command-line-options.php -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/[email protected]

