in reply to AS Perl 629 Image::Magick makes Perl crash when outputting file to Image

The answer to your problem is quite simple. The Image::Magic method Write, does all the file handling for you. Life will be a lot easier if you just do:

$image->Write("format:filename");

Don't open the file yourself, as that is most likely what is causing the module to crash your script.

Brother Descartes

-- Programmus, ergo sum.
  • Comment on Re: AS Perl 629 Image::Magick makes Perl crash when outputting file to Image
  • Download Code