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.
Jpeg image resize causing blurring of text
-
- Posts: 13
- Joined: 2013-04-04T03:30:30-07:00
- Authentication code: 6789
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Jpeg image resize causing blurring of text
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.
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.
snibgo's IM pages: im.snibgo.com
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Jpeg image resize causing blurring of text
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
See
http://www.imagemagick.org/script/comma ... .php#alpha
http://www.imagemagick.org/Usage/masking/#alpha