Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems reading image file

Status
Not open for further replies.

vadg

Technical User
Joined
Mar 4, 2007
Messages
9
Trying to add a logo to my GD::GRaph files

using

$graph->set(logo => 'image.gif');
#$graph->set(logo_resize => 0.5);
$graph->set(logo_position => 'LL');

response is "Problems reading image.gif at ...."

any ideas what the problem might be?


 
maybe you need a path to the image instead of just the image name.

------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
The image is sitting in the same folder as the program. It's finding it but can't read it. Also, the image is the same format as my output image and,of course, that image is printed. I'm also 'using' GD and GD::Graph...
 
All I can think is it's not a supported gif format or your script doesn't have persmission to open the file.

------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
You're correct.

I tried it with a gif file I'd created with GD::Graph and it works. Didn't realize there were different types of GIF formats.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top