Hi Guys,

Is there any way of getting gif or jpg dimensions without using modules like
Image::size or image::magick? My web host (on a linux box) has predefined
modules installed and these 2 modules are not installed. I've tried creating
a folder 'Image' and coping Size.pm into that folder and running the
following code:

my($file) = "uploads/some_file.gif.or.jpg";
use Image::Size;
my($file_x, $file_y) = imgsize("$file");

This gives me the following error when run on the server:

Can't locate auto/Image/Size/jpegsize.al in @INC (@INC contains:
/usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1
/usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.6.1/i386-linux /usr/lib/perl5/vendor_perl/5.6.1
/usr/lib/perl5/vendor_perl .) at Image/Size.pm line 210

Am I being a dumb scot with this or can I do it some other way that doesn't
use modules?

Thanks in advance for any help.

Ewen

_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to