This smells like a serious bug. It has the potential to destabilise other parts of your application.
in reply to Re^2: Image::Magick Exception 430
in thread Image::Magick Exception 430
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