in reply to mod_perl hostname gif creator

You can skip the step where you write the image to disk by calling something like:
my $pic = $image->ImageToBlob(); $r->send_http_header; $r->print( $pic );
I use this all the time along with:
$image = new Image::Magick($image_type); $image->BlobToImage($blob);
to get images in & out of the database.