Link to home
Start Free TrialLog in
Avatar of baltman
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.
Avatar of interiot
interiot

Avatar of baltman

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
>>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...
ASKER CERTIFIED SOLUTION
Avatar of sburlot
sburlot

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of baltman

ASKER

Well, thanks. At least I won't have to install the module on the webserver....:)

BA