[magick-users] Gravity weighs heavy on newbie
Anthony Thyssen
anthony at griffith.edu.au
Tue Feb 6 21:02:43 CST 2007
"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.
Anthony Thyssen ( System Programmer ) <A.Thyssen at griffith.edu.au>
-----------------------------------------------------------------------------
,.......
,.........:::::::::::::::::.
,......::::::::::::::::::'''' ``::::::
/\_./o__ ....::::::::::::::::::''''''' `::::
(/^/(_^~' ```::::::............ ,::::
___.(_.)____ ```````:::::::::::::::::::::::::::'
| `````````:::::::::::'
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
More information about the Magick-users
mailing list