skelooth has asked for the wisdom of the Perl Monks concerning the following question:

Great and powerful perl monks, I once again come groveling for answers.

All I want to do (seriously) is resize a bunch of images in jpg, gif, tiff, eps, psd, ai, and qxd format to produce some thumbnails. ImageMagick claims to be able to do this.

First I tried the ubuntu package from it's repository, it provided no command line tools, and PerlMagick was only converting jpg and a select few eps.

So I compiled image::magick from source --with-perl, only now the command line tools work properly but the Image::Magick module does not open *any* file.

I would be entirely grateful if anyone has experienced something similiar and knows how to fix it, or if anyone has a different solution that can be worked into my program without moving mountains.

Thank you for any help you can give.

Replies are listed 'Best First'.
Re: Image::Magick run around
by mirod (Canon) on May 30, 2008 at 14:45 UTC

    These days I find Image::Magick pretty solid, so I use it quite a bit. But in the past it used to break quite often, in which case I would use system to run convert or mogrify with the appropriate parameters. You could try that. The overhead of forking a separate process for each image has never seemed to change performances too drastically BTW.

      Thank you for your speedy response. I think I am going to go that route and hope the overhead isn't too bad. I have approximately 50,000 files to make thumbnails of. Hopefully spawning them off as background processes & will help buy me some time.
Re: Image::Magick run around
by marto (Cardinal) on May 30, 2008 at 15:25 UTC
    Can you post the output of running

    identify -list format

    at the command prompt to check what image formats are supported on your system?
      Marto: They are all listed as rw, but the Perl module seems to be blind

      Mirod: That works WONDERFULLY, you are correct, the overhead of spawning a subshell is negligible. All my vote are belong to you. I can get back to actually programming now.