Page 1 of 1

Bach converting PDF to Image File (JPG,BMP or BMP)

Posted: 2016-01-13T07:03:49-07:00
by Krysiz
Hi,

We have an issue and I seem to be hitting a brick wall with this. We're trying to batch convert a set of single age PDF's to any form of image file but reducing it's size to fit a 6x4 label. All of the conversion is fine but the output file is blurry no matter what we change. The script we are using is below:

mogrify -path C:\Test\Temp -format jpg -alpha remove -density 150 -quality 100 -resize 297x432 -unsharp 1.5 *.pdf

We have tried changing the density,quality and unsharp values but with no luck. the output image is always blurry. We have to use the -alpha remove else the image is black.

We may be over working it a little because all we actually need to achieve is to re size the original PDF to fit a 6x4 label and it may not need to be converted to image. however that seems to blur as well so i'm obviously doing something wrong.

Any help is much appreciated.

Matt

Re: Bach converting PDF to Image File (JPG,BMP or BMP)

Posted: 2016-01-13T07:13:04-07:00
by snibgo
I suggest you drop the resize and unsharp, for now. Is the result still "blurry"? If so, the density setting is wrong.

ImageMagick will convert the PDF page by page. I suspect what you really want is to extract the image from each page. pdfimages is a better tool for that. It simply pulls the image out of the page and makes an image file. Then you can resize that as required with IM.

297x432 is very small. Modern printers are at least 300 dpi, so a 6x4 inch image would be 1800x1200 pixels.

A sample input file would help us help you. Also please state what version IM you are using, on what platform (Windows, I guess).