Well, I tryed to include this code, but I was unsuggessful.
Here is the basic script:
#!/usr/bin/perl
use Image::Size;
print "Content-type: text/html\n\r\n\r";
# Get the size of globe.gif
($globe_x, $globe_y) = imgsize("test.gif");
# Assume X=60 and Y=40 for rema
Webmaster wrote:
> I'll looking for a way to get the image size (jpg or gif). I had a look around and
>found some information on it. However, none of these page provide an example well
>enough to get an idea how to use it.
http://search.cpan.org/search?dist=Image-Size
--
Hi there,
I'll looking for a way to get the image size (jpg or gif). I had a look around and
found some information on it. However, none of these page provide an example well
enough to get an idea how to use it.
Any Ideas???
ve access to install a newer version
>of Perl.
What version of perl are you running?
>When I put in the break code, the use Image::Size part of the script
>makes it - so Perl is finding the module:
>
> use Image::Size qw{ imgsize };
> print "Content-type: text/html
At 10:47 PM 07/12/2001 -0500, Teresa Raymond wrote:
>use Image::Size;
>
> (in between code snipped)
>
>use Image::Size qw{ imgsize };
Why are you use-ing Image::Size twice? The first declaration is enough.
This code seems to work just fine when I run it from my commandline (bo
Dear fliptop or others:
I finally had a chance to try out some of the email attachment code
and right know I'm testing the script and receive an error using the
Image::Size module at the line: my ($x, $y, $id) = imgsize($file);
Any help would be appreciated.
#!/usr/local/bin/perl -w