Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: mod_perl and image::size

by duct_tape (Hermit)
on Mar 15, 2005 at 17:02 UTC ( #439680=note: print w/replies, xml ) Need Help??

in reply to mod_perl and image::size

Perhaps it is a file permissions issue. Make sure that the file is readable by the web server.

Another thing that could be happening is that you are using a relative path to specify the file location, and the script running under mod_perl might not be running from with the same current directory as the old script was. Try using chdir() or specifying the full path to the file to see if that helps.

The imgsize function returns 3 things when an error occurs. The results are (undef, undef, "ERRORMESSAGE"). Check that error message to see if/what error is occuring.

my($w, $h, $err) = imgsize($file); die $err if ($err);

These are the only things I can think of off the top of my head. It will be easier for people to help you if you post some code.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://439680]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2019-10-15 21:32 GMT
Find Nodes?
    Voting Booth?