Page 1 of 1

Jpeg image resize causing blurring of text

Posted: 2015-04-29T01:58:22-07:00
by gaurnitai74
While converting PDF to Jpg & resizing it the text is blurred and is unreadable. The output image needs to be at the most 1280 and density of 300.

The sample input file:
https://drive.google.com/file/d/0B3z58v ... sp=sharing

The command I am using:
convert.exe -density 300 Smnd.pdf[0-1] -alpha flatten -strip -filter Lanczos -resize 1280x1280 -quality 90 Smnd.jpg

ImageMagick: 6.8.8
Ghostscript: 9.06

For -resize operator I have tried numerous filters but none of them are giving a readable text expected for density of 300. The -size operator gives sharp text but the image size is huge for density of 300. Any assistance is greatly appreciated. Thank you.

Re: Jpeg image resize causing blurring of text

Posted: 2015-04-29T06:07:50-07:00
by snibgo
I don't understand what problem you want to solve.

Rendering your PDF at density 300 gives a good result. Shrinking this makes the characters smaller (of course), but they are still readable.

You are using old versions of the software. Perhaps that is giving you problems.

Re: Jpeg image resize causing blurring of text

Posted: 2015-04-29T09:01:40-07:00
by fmw42
There is no command "-alpha flatten". What are you really trying to do with it?

See
http://www.imagemagick.org/script/comma ... .php#alpha
http://www.imagemagick.org/Usage/masking/#alpha