Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: using GD inside CGI...

by themage (Friar)
on Dec 19, 2006 at 17:45 UTC ( [id://590719]=note: print w/replies, xml ) Need Help??


in reply to using GD inside CGI...

Hi UrbanHick,

You can create two diferent cgi (or the same cgi called with diferent parameters), one to return the HTML, and the other to return the image.

Or you can have the cgi that return the html process and save the image to disk, and then in the HTML put the URL to that image. This is what I would do, because this way I already know that the image was correctly processed when I send the HTML to the client.

The last alternative (that I never tried) is to put the image in base64 (I think) in the HTML. If you prefer this on (I hope not), you can read about it in http://www.unixreview.com/documents/s=8217/ur0305h/.

TheMage
Talking Web

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-25 08:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found