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: [email protected]
[mailto:[email protected]] 
Sent: 26 August 2009 14:00
To: Jon Perkin; [email protected]
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

_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to