Re: resize pictures received by mailserver
On Fri, 15 Jun 2012 18:26:08 +0100, Tixy wrote in message
<[🔎] 1339781168.3116.8.camel@computer2.home>:
> 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-xV9PQ@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.
..ah, thanks.
> imagemagic has a wealth of options, it's well worth reading them
> whenever you have an image manipulation task. [1]
..aye, I went the graphicsmagick route but I don't recall why. ;o)
--
..med vennlig hilsen = with Kind Regards from Arnt Karlsen
...with a number of polar bear hunters in his ancestry...
Scenarios always come in sets of three:
best case, worst case, and just in case.
Reply to: