Do you need consulting from ImageMagick experts and are willing to pay for their expertise? Or are you well versed in ImageMagick and offer paid consulting? If so, post here otherwise post elsewhere for free assistance.

I have many PDF files which contain detailed schematic images. I need these images extracted into individual image files in order to use in galleries on a (WordPress) website. I need to maintain high resolution and clarity (for zooming in) while keeping filesize as low as possible. I'm presuming PNG8 Grayscale is the desired format but I am not a graphics expert and don't know the best way to proceed.

Thanks Fred, I ran the utility but only the company logo was extracted from the PDF, the diagrams were ignored. Could that mean the diagrams themselves were originally created directly as PDFs from some engineering software? Would you have any advice if that's the case?

jjsararas wrote:Thanks Fred, I ran the utility but only the company logo was extracted from the PDF, the diagrams were ignored. Could that mean the diagrams themselves were originally created directly as PDFs from some engineering software? Would you have any advice if that's the case?

Yes, it means only the logo was an image imbedded in the PDF. The rest of the pdf is vector data. IM can convert the PDF to some image format such as PNG using the delegate library Ghostscript as user snibgo said above.

But you will likely need to tell the command the desired density that will convert the image to pixels and also know if the PDF is CMYK or sRGB. You may also want to supersample to get higher quality if you have line drawings.

Do you know if all your PDF files are colorspace CMYK or sRGB or a mix of the two. If the latter, then one needs a bit more complicated code to check the image to see which colorspace it is and if it has a profile.

The best thing would be post an example PDF to some free hosting such as dropbox.com or your company server so we can download it and see about these issue. The we can give you some suggested command lines.

Apologies- I'm on Windows 7-64, ImageMagick-6.9.3-7-Q16-x64. Thank you for that code, very much appreciated. I'm afraid this is a bit out of my range as I'm not a graphics professional by a long shot! I do have a programming background so I can follow what your code is doing, but I wouldn't know where to start in Windows. And I'm brand new to ImageMagick. Thanks for your generosity here.