• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 241
  • Last Modified:

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.
0
baltman
Asked:
baltman
1 Solution
 
baltmanAuthor Commented:
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
0
 
psogaaCommented:
>>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...
0
 
sburlotCommented:
If you cant install a module on your webserver, you should download the module Image::Size and copy the needed code from Size.pm into your code.

Isnt as easy as it sounds!
0
 
baltmanAuthor Commented:
Well, thanks. At least I won't have to install the module on the webserver....:)

BA
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now