in reply to Image::Magick Exception 430

Hi ruzam,

I ran your script, using Image::Magick 6.3.4, and substituting pdfs for pic files. I am getting the same error!

I agree that Image::Magick doesn't seem to be cleaning up file handles properly.

You might want to examine Image Magick bugs. Consider submitting a bug report, against the Perl bindings, using your test case.

Note that the current version of Image::Magick is 6.3.6

Replies are listed 'Best First'.
Re^2: Image::Magick Exception 430
by ruzam (Curate) on Nov 05, 2007 at 16:25 UTC
    Thanks snoopy,

    At least now I know there's nothing more I can do with it (getting a newer version of Image::Magick is not an option).

    Before I revert my code back to running 'convert' as a shell command, is there a way to get at the handles created by Image::Magick and force close them outside of Image::Magick?
      This smells like a serious bug. It has the potential to destabilise other parts of your application.

      As a work-around, your best bet could be to convert your sub to a stand-alone command-script and run it as a once per image from your main program.

      Submit this as a bug report, if you've got a few minutes, Otherwise I will!

      Update:The bug went away on my system after I upgraded to 6.3.6

      From the change log:

      2007-05-03  6.3.4-1 Cristy  <quetzlzacatenango@image...>
        * Add support for PFM images.
        * Check for corrupt EXIF image profiles.
        * Writing JPEG YCbCr TIFF images no longer faults (reference
          http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=8896).