converting pdf to fax tiff (get a bit better quality?)

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
mmlenz
Posts: 23
Joined: 2012-05-30T08:08:21-07:00
Authentication code: 13

converting pdf to fax tiff (get a bit better quality?)

Post by mmlenz »

I'm using the following:

convert -density 204x196 -units PixelsPerInch in.pdf -alpha remove -resize '1728x2156!' -compress Fax %d-out.tiff

Which is a command I found in another post on the forum. The resulting tiff file isn't horrible but the text is a bit jagged. Any recommendations for parameters to try to smooth things out a bit?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: converting pdf to fax tiff (get a bit better quality?)

Post by fmw42 »

double your input density. it will be slower, but should render better. If that is not good enough, increase the input density further.
mmlenz
Posts: 23
Joined: 2012-05-30T08:08:21-07:00
Authentication code: 13

Re: converting pdf to fax tiff (get a bit better quality?)

Post by mmlenz »

yeah, I bumped it to 4x that and there was little or no improvement. I'm wondering if maybe my pdf viewer applies some kind of smoothing to the actual image. I used pdfimages to extract some of these and they look nearly identical to the output produced by convert.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: converting pdf to fax tiff (get a bit better quality?)

Post by fmw42 »

Can you post a link to one of your (smaller) pdf files? perhaps it has to do with the fax compression, which likely binarizes the image, thus the jaggedness. You could try to make the image binary using -monochrome before the output, if that is the issue, and see if that helps as I believe -monochrome will dither the result. But I am no expert on fax format tifs.
Post Reply