GD Image in a $var?
Posted: Wed Oct 08, 2003 4:17 pm
Probably been asked loads of times before but I've searched and can't find any answers so here goes...
I have a Class that uses GD to create images on-the-fly. Is it possible to store a created image in a $var in order to echo() at various points on the script? At the moment the image is being RETURNED from the Class and dumped into the page with a header("content-type") call.
I could create the image at each point it's needed but that's a bit slow.
I could save the image to the server and use that but it is only a temp image and creating,deleting,creating,deleting images all the time is a pain in the rear! This also applies to saving/loading from a Blob.
I have a Class that uses GD to create images on-the-fly. Is it possible to store a created image in a $var in order to echo() at various points on the script? At the moment the image is being RETURNED from the Class and dumped into the page with a header("content-type") call.
I could create the image at each point it's needed but that's a bit slow.
I could save the image to the server and use that but it is only a temp image and creating,deleting,creating,deleting images all the time is a pain in the rear! This also applies to saving/loading from a Blob.