nanji has asked for the wisdom of the Perl Monks concerning the following question:
I have wrtten image creation code using Image::Magick
This works ok on my test machine running under apache and win32, however when I run it under apache/linux I get the dreaded :"Premature end of script headers: " in the error logs.
I've chmoded the script 755, uploaded in ascii
=============the code=============
===============================#!/usr/local/bin/perl # # Make simple beveled button and output to STDOUT in GIF format # # to embed this image in a web page, use: # img src="imagedemo.pl" use Image::Magick; #print "Content-type: image/gif\n\n"; # #$image = Image::Magick->new; #$image->Set(size=>'30x180'); #$image->Read("gradient:#ff0000-#0000ff"); #$image->Raise('3x3'); #$image->Rotate(-90); #$image->Write('gif:-'); exit(0);
My host tells me that image magick is installed; the script falls at the use statement uncommented above..
any meditative thoughts??
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem using Image::Magick
by dws (Chancellor) on Apr 16, 2003 at 16:49 UTC | |
|
Re: Problem using Image::Magick
by VSarkiss (Monsignor) on Apr 16, 2003 at 16:47 UTC | |
|
Re: Problem using Image::Magick
by gmpassos (Priest) on Apr 17, 2003 at 05:43 UTC | |
|
Re: Problem using Image::Magick
by Improv (Pilgrim) on Apr 16, 2003 at 16:47 UTC |