Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Image::Magick "geometry" argument?

by thpfft (Chaplain)
on Jul 20, 2003 at 00:07 UTC ( [id://275959]=note: print w/replies, xml ) Need Help??


in reply to Image::Magick "geometry" argument?

I remember trying to work this out. It turns out that the geometry parameter is just a string that describes the dimensions of either the finished image or the working area. eg:

my $ret = $image->Resize( geometry => "100x100" ); die "... $ret" if $ret;

just tells IM to resize $image to 100 pixels square. The value can be more complicated, as in your Crop example where the offsets are also defined. I imagine the complex string parameters can be blamed on the command-line origins of all these tools.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://275959]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-24 12:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found