baltman
asked on
How to get the width and height of an image in Perl?
Hi all,
I need an easy way to detect the width and height of an image file (.gif and .jpg) in one of my perl scripts.
Can anyone help me?
Thanks!
BA.
I need an easy way to detect the width and height of an image file (.gif and .jpg) in one of my perl scripts.
Can anyone help me?
Thanks!
BA.
ASKER
interiot:
I know that, but I was actually hoping I could do without having to install an additional module on the webserver (which my host doesn't allow).....
I thought there was a way to determine the width and height of an image, with just some simple script? Well, I guess I was wrong.....
How do I normally install a perl module on my webserver? Does my host even have control over that? Isn't a module also just a lot of code?
Thanks!
BA
I know that, but I was actually hoping I could do without having to install an additional module on the webserver (which my host doesn't allow).....
I thought there was a way to determine the width and height of an image, with just some simple script? Well, I guess I was wrong.....
How do I normally install a perl module on my webserver? Does my host even have control over that? Isn't a module also just a lot of code?
Thanks!
BA
>>How do I normally install a perl module on my webserver? >>Does my host even have control over that? Isn't a module also just a lot of code?
just write "ppm install image::size" in your shell to install the image::size module...
just write "ppm install image::size" in your shell to install the image::size module...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Well, thanks. At least I won't have to install the module on the webserver....:)
BA
BA
http://search.cpan.org/doc/RJRAY/Image-Size-2.93/Size.pm
http://search.cpan.org/doc/GAAS/Image-Info-1.07/lib/Image/Info.pm