in reply to Image size in pure perl
SYNOPSIS use Image::Size; # Get the size of globe.gif ($globe_x, $globe_y) = imgsize("globe.gif"); # Assume X=60 and Y=40 for remaining examples use Image::Size 'html_imgsize'; # Get the size as 'width="X" height="Y"' for HTML generation $size = html_imgsize("globe.gif"); # $size == 'width="60" height="40"' use Image::Size 'attr_imgsize'; # Get the size as a list passable to routines in CGI.pm @attrs = attr_imgsize("globe.gif"); # @attrs == ('-width', 60, '-height', 40) use Image::Size; # Get the size of an in-memory buffer ($buf_x, $buf_y) = imgsize(\$buf); # Assuming that $buf was the data, imgsize() needed a referenc +e to a scalar
|
MJD says you can't just make shit up and expect the computer to know what you mean, retardo! I run a Win32 PPM repository for perl 5.6x+5.8x. I take requests. ** The Third rule of perl club is a statement of fact: pod is sexy. |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Image size in pure perl
by belg4mit (Prior) on Mar 06, 2003 at 16:34 UTC | |
by tachyon (Chancellor) on Mar 07, 2003 at 01:51 UTC | |
|
Re: Re: Image size in pure perl
by tachyon (Chancellor) on Mar 07, 2003 at 00:34 UTC | |
by PodMaster (Abbot) on Mar 07, 2003 at 07:21 UTC |