Hi guys. I normally use the Imagick Class and php to do any imaging but I had a person request help in making an image countdown using cgi/perl. I found this simple script online and it writes the image ok, but I want to print out the image with an image header. I tried by adding a png header but to no avail. Also is there a parameter that says to make it a jpg, png, or gif?
Thanks for any help!Code:#!/usr/bin/perl -w use Image::Magick; $q = Image::Magick->new(); $q->Set(size => '200x80'); $q->Read('xc:white'); $q->Annotate( text => 'Hi There', font => '../../php/fonts/deloise.ttf', pointsize => 40, fill => 'black', gravity => 'Center', ); $q->Write('whatever.png');