[magick-users] Gravity weighs heavy on newbie
Mark
asarian at xs4all.nl
Tue Feb 6 05:38:01 CST 2007
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.
Perhaps I'm misunderstanding the process or function of gravity. Can
someone please enlighten me? I'm kinda new to Image::Magick.
Thanks,
- Mark
More information about the Magick-users
mailing list