Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: determining size of image

by ikegami (Patriarch)
on Feb 22, 2007 at 17:06 UTC ( [id://601590]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my ($width,        $height       ) = ...;
    my ($max_width,    $max_height   ) = (800, 600);
    ...
       $width  = int($width  * $factor + 0.5);
       $height = int($height * $factor + 0.5);
    }
    
  2. or download this
    use Image::Magick qw();
    
    ...
       $img->Resize(width => $new_width, height => $new_height);
       $img->Write($file_name);
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found