in reply to Shrink Images and PDFs

Nice. If convert is on your system, chances are so is Image::Magick. Is there a reason to not use a pure Perl implementation rather than forking a convert process? You may want to look for a Perl interface to gs as well. I'd be surprised if a decent one didn't exist.