Hello, and thanks for your time. Fyi, I asked imagemagick for help, 
experimented all friday and saturday to no avail. Here's the scenrio to make 
it easier for you to understand the problem:

A.) LInux. Apache webserver. Web pages, not command line. No interest in 
doing this via command line. Perl version 5.005

B.) The objective is to finally get text written on a png file I can 
dynamically create and display. Image magick's suggestoin for adding text 
leaves me with broken images displayed instead of the png file and does not 
write text on it.

The font I want to use is "Generic.ttf"
The text I want to test with is "Hello World"

The script that works without trying to add text, but  just create/view the 
png is (Chmod 755, of course)

#!/usr/bin/perl -w
use Image::Magick;
#binmode STDOUT;
print "Content-type: image/png\n\n";
my($image);
$image = Image::Magick->new; 
$image->Set(size=>'300x300'); 
$image->ReadImage('xc:green'); 
#$image->Set('pixel[149,149]'=>'red');
$image->Quantize(colorspace=>'gray');
$image->Write(filename=>'image55.png', compression=>'None');
binmode STDOUT; 
$image->Write('png:-');
    
# So the goal is to get a proven to work, without fail, solution to get text 
added to that .png file

I have struggled for days. Thanks for your time, I hope this is not off 
topic, Just imagemagick site/list has been of no help or support

Joel

Reply via email to