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
hgersano
Posts: 1
Joined: 2015-10-22T21:10:12-07:00
Authentication code: 1151

ImageMagick Text Conversion Advice

Post by hgersano »

Hi,

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
Attachments
output.tiff
output.tiff (16.86 KiB) Viewed 7075 times
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: ImageMagick Text Conversion Advice

Post by snibgo »

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: im.snibgo.com
Post Reply