"Mark" on wrote... | > -----Original Message----- | > From: [EMAIL PROTECTED] | > [mailto:[EMAIL PROTECTED] On Behalf Of | > Anthony Thyssen | > Sent: woensdag 7 februari 2007 4:03 | > To: ImageMagick User List | > Subject: Re: [magick-users] Gravity weighs heavy on newbie | > | > "Mark" on wrote... | > | Dear list, | > | | > | Using Image::Magick -- 6.3.2 (FreeBSD), I have a question | > about 'gravity'. | > | Consider please the following code: | > | | > | $image->Set (quality => 100); | > | $image->Scale (geometry => '150x150'); | > | $image->Extent (geometry => '150x150', gravity => 'Center', ...); | > | $image->Write ($thumbnail); | > | | > | Can't get the gravity orientation to work, though. I always get a | > | thumbnail which is extended southward (if it's, say, | > 150x84), whereas I | > | expected the image to become centered on the (black) 150x150 canvas. | > | | > | > Upgrade. the gravity addition was very recent. | | Upgrade to what? I'm already running 6.3.2. Are you saying that between | 6.3.2-0 and 6.3.2-3, gravity was added? The changelog says nothing about | that. Besides. 6.3.2-0 is the latest in the FreeBSD ports; so I could | upgrade yet if I wanted to. | It may have been added immediateally after that release.
It may also be that it is just not part of the Perl Magic stuff too, the perl API tends to be a little further behind the Core stuff. Report it in the IM developer forum. In the mean time you can so what was done befor extent understodd gravity... Add a border and crop as appropriate. See IM examples, Thumbnails, Padding out an Image http://www.imagemagick.org/Usage/thumbnails/#pad Yes. IM examples has moved (with a automatic redirect) to the IM site. Anthony Thyssen ( System Programmer ) <[EMAIL PROTECTED]> ----------------------------------------------------------------------------- A / \ o `` Impressive... /</ \/|> Obi Wan has taught you well. '' / \ /\ /___\ \ \ -- StarWars ----------------------------------------------------------------------------- Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/ _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
