30 Augusti 2006

LazyWeb: ImageMagick PDF help

Is there an ImageMagick guru in the house? Here’s my problem.

I’ve got a boatload of beautiful high-quality TIFF page-scans that I want to shove into a PDF full of lower-quality, smaller JPEGs for web viewing. The JPEGs I got, no problem; one itsy-bitsy shell-script does the job nicely.

When I do a “convert *.jpg test.pdf”, however, the resulting pages have immensely too-large bounding boxes. I can’t figure out whether this is an issue with the JPEGs or the PDF conversion process, and if the latter, how to tell ImageMagick not to pad the images, or even to use a specific page size.

Maybe I should be using Ghostscript directly, instead of through ImageMagick?

If you know how to make this work, would you email me with the secret sauce, please?