This is most likely a configuration/permissions issue,
however I am unsure
where to start looking. I'm using apache/mod_perl and
perlmagick to generate
some cgi images.
The relevant code is:
-----
use Image::Magick;
#print ("Content-type: image/png\n\n");
my $image=Image::Magick->new;
my $last_error;
$image->Set(size=>'30x180');
$image->Read("gradient:#ff0000-#0000ff");
print ("Content-type: text/html\n\n");
binmode STDOUT;
$last_error = $image->Write('png:-');
print "$last_error\n";
-----
Now, from a console (with appropriate changes in headers),
the code works as
normal. The header is printed, followed by binary data.
However, the same
code when run via CGI returns the following error:
Exception 450: Output file write error --- out of disk
space? `-'
I'm assuming that imagemagick is attempting to write to a
temp file
somewhere before passing the image out to stdout, but I'm
unsure. For the
curious, there is plenty of space on the drive.
I'd appreciate any wisdom that can be imparted on this
problem.
Sean Tobin
_______________________________________________
Magick-users mailing list
Magick-users imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick
-users
|