Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Image Magick - Sample vs. Scale

by crouchingpenguin (Priest)
on Feb 28, 2003 at 12:12 UTC ( [id://239404]=note: print w/replies, xml ) Need Help??


in reply to Image Magick - Sample vs. Scale

You can use Image::Thumbnail (which uses Image Magick) like so:

#!/usr/bin/perl use strict; use warnings; use Image::Thumbnail; + my $image_name = 'picture.jpg'; my $output_image_name = 'picture_thumb.jpg'; + my $t = new Image::Thumbnail( size => 80, create => 1, inputpath => $image_name, outputpath => $output_image_name );

Update: Oops, after drinking my morning cup I noticed the question wasn't concerning the actual image size.


cp
---
"Never be afraid to try something new. Remember, amateurs built the ark. Professionals built the Titanic."

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-19 17:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found