Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: graphicsmagick perl shrink image to size

by tangent (Vicar)
on Nov 01, 2021 at 17:00 UTC ( #11138304=note: print w/replies, xml ) Need Help??


in reply to graphicsmagick perl shrink image to size

I gave up using Image Magick in favour of Imager. If you have a look at the scale() function on the Imager::Transformations page you will see how easy it is to accomplish.
my $newimg = $img->scale( xpixels => 800, ypixels => 200, type => 'min', );
Obviously you only need to do this transform if the original image exceeds one of the dimensions.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2022-01-19 14:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (55 votes). Check out past polls.

    Notices?