PDF to jpeg, reducing text blurriness
Posted: 2011-07-03T04:50:38-07:00
I'm trying to automate creation of images from single-page PDFs, and am having trouble getting good-looking text in the output. The PDFs are mostly monochrome (but not always), and the output file needs to be 120dpi and at a fixed width with height varying according to the page size. My command-line currently looks roughly like this:
convert -density 600 input.pdf -resample 120 -resize 960x2000 output.jpg
If I've understood things correctly, this is setting IM to treat input.pdf as having a dpi of 600 (so that the input image is larger than the target output size), and then resizing and resampling at the same time for the output. Am I on the right track?
The text in the output images is invariably either too blurry, or too blocky. It seems obvious that I need to do some filtering, but I'm a bit lost with the maths fundamentals. I've fiddled about with point, triangle and gaussian filters, and with blur settings < 1.0, but I can't seem to find anything useful. Can anyone suggest some directions to pursue?
Thanks in advance!
convert -density 600 input.pdf -resample 120 -resize 960x2000 output.jpg
If I've understood things correctly, this is setting IM to treat input.pdf as having a dpi of 600 (so that the input image is larger than the target output size), and then resizing and resampling at the same time for the output. Am I on the right track?
The text in the output images is invariably either too blurry, or too blocky. It seems obvious that I need to do some filtering, but I'm a bit lost with the maths fundamentals. I've fiddled about with point, triangle and gaussian filters, and with blur settings < 1.0, but I can't seem to find anything useful. Can anyone suggest some directions to pursue?
Thanks in advance!