I have an Image::Magick object that's read in from an Apache upload filehandle.

The object returns all the relevant info when requested.

eg. $magick->Get('format') et al work just fine.


However, when I attempt to write the file I get the following:



magick/image.c:1469: failed assertion `image->signature == MagickSignature'
[Fri Mar 14 14:05:19 2008] [notice] child pid 5005 exit signal Abort (6)
<<<<


or rather when I attempt to write to

   $magick->Write('/webdata/take2films.co.uk/data/assets/foo.png');

I get the error message and apache falls over.


If however I do

   $magick->Write('/tmp/foo.png');

things works just fine.



In the fail case, the image DOES get written. The directory I'm writing to does exist and is owned by the same user that apache (and therefore ImageMagick) is running as.

In fact I can write just fine to /webdata, /webdata/take2films.co.uk, /webdata/take2films.co.uk/data and (just for thoroughness), /webdata/take2films.co.uk/data/monkey.

All have the same user and are set to 775.


Any ideas as to why on earth Image::Magick is barfing out like this?


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

Reply via email to