Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: determining size of image

by ikegami (Patriarch)
on Feb 22, 2007 at 17:06 UTC ( #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? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2023-03-22 09:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (60 votes). Check out past polls.

    Notices?