ImageMagick Text Conversion Advice

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
Posts: 1
Joined: 2015-10-22T21:10:12-07:00
Authentication code: 1151

ImageMagick Text Conversion Advice

Post by hgersano » 2015-10-22T21:31:22-07:00


I use ImageMagick internally for our faxes and we've had some success with the majority of outputs, especially with image dithering however I'm having issues with the text on the document - it looks distorted?

This occurs with any input, word documents, pdf, etc. I've attached an example output. Is there any parameter I can add to my command that will sharpen text up and/or any suggestions?

Code: Select all

convert -alpha off -density 204x98 input.pdf -resize '1728x2255' -dither FloydSteinberg +antialias -compress fax -units PixelsPerInch output.tiff
Thanks :D
output.tiff (16.86 KiB) Viewed 3571 times

Posts: 11213
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: ImageMagick Text Conversion Advice

Post by snibgo » 2015-10-22T22:05:07-07:00

Is the problem in the rasterisation of the PDF, or the resizing and compression? If you remove "-resize '1728x2255' -dither FloydSteinberg +antialias -compress fax -units PixelsPerInch", does that solve the problem?

If it doesn't, then try a higher density, eg 408x196.
snibgo's IM pages:

Post Reply