Hi, I have encountered a bit of a problem. I'm trying to write a map generator. It is simple enough - the user specifies a location, the cgi opens a data file to find the map co-ordinates, and then opens the map and drops a pointer (like a big red x) onto those co-ordinates. It then crops the image, so we get a 200x200 (or some other figure) gif, with the pointer right in the middle. Simple enough? Well, I thought so. Everything was working fine - it works perfectly, and can save the image to disk. What it can't do is send the image to the web page when you call it with <IMG SRC="cgi-bin/map.cgi"> and I have no idea why. I am using GD, and the output code is: sub display_image { # Convert the image to GIF and send it out print "Content-type: image/gif\n\n"; print $map->gif; } What really annoys me is that occasionally it even seems to work. Maybe, but I'm not sure of this yet, it is working the first time the cgi is fired up, but then doesn't work until it closes and has to be restarted. Is this possible? Does anyone have any ideas, as I thought I was making great progress until this happened. Regards, Adam. -- -------------------------------------------------------------------- Web Author phone: (08) 8201-3139 (after 1:30pm) Flinders University email: adam.jenkins@flinders.edu.au http://www.flinders.edu.au/ Room 21J, Physical Sciences Building ==== Want to unsubscribe from this list? ==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org