[magick-users] File operations not working under mod_perl with Mason
Jon Perkin
jperkin at inview.co.uk
Fri Aug 28 01:04:09 PDT 2009
When (within Mason/mod_perl) I do:
$x=$im->Read($imagefilename);
No image is read and $x is undef.
It works fine in a stand-alone script. Everything else in PerlMagick
works fine undef Mason. Just file read/write operations fail, even
though any method file IO should work fine.
Cheers, Jon.
-----Original Message-----
From: duc.sequere.aut.de.via.decede at imagemagick.org
[mailto:duc.sequere.aut.de.via.decede at imagemagick.org]
Sent: 26 August 2009 14:00
To: Jon Perkin; magick-users at imagemagick.org
Subject: Re: [magick-users] File operations not working under mod_perl
with Mason
> $im->Read($imagefilename)
See what PerlMagick reports:
$x = $im->Read($imagefilename);
warn "$x";
-----Original Message-----
Hi folks.
Does anyone know why PerlMagick's file operations are failing for me
under Mason?
i.e. $im->Read($imagefilename) and $im->Write($imagefilename) both
always fail quietly, as if they hadn't been called at all.
However if I do the file read/write myself and use
$im->BlobToImage($imagedata) and $imagedata=$im->ImageToBlob(), it works
fine.
I'm using ImageMagick (quite an old version 6.3.7, due to compatibility
issues) under Mason (via mod_perl) on Apache 2.2.8 on Windows.
Cheers, Jon.
--
Jon Perkin, Senior Software Engineer, Inview Interactive Ltd
More information about the Magick-users
mailing list