Image Resize Blurry / Jagged

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
ravinder
Posts: 14
Joined: 2015-11-05T23:49:44-07:00
Authentication code: 1151

Image Resize Blurry / Jagged

Post by ravinder »

I am converting gif from the pdf, but after gif conversion the quality if the image is not good, text are blurry and not properly readable.

I am shrinking the pdf and using -resize value 32%. i have to generate small image as compare to pdf hence i need to resize. please suggest on it.

$cmd = '/usr/local/bin/convert -debug All -pointsize 72 -trim +repage -density 300 -resize 32% -quality 100 -append -transparent "#FFFFFF" new.pdf test1.gif';
exec($cmd, $output);


Thanks,
Ravinder
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Image Resize Blurry / Jagged

Post by fmw42 »

You should read your input PDF before any operators (-trim, -resize, -append, -transparent) for proper IM syntax. See http://www.imagemagick.org/Usage/basics/#cmdline

I do not know that -pointsize does anything nor -quality. The latter does not affect gif, since there is no compression..

Try (I presume your PDF input is multipage)

Code: Select all

convert -debug All -pointsize 72 -density 300  -background "#FFFFFF" new.pdf -trim +repage -resize 32% -append -quality 100 test1.gif
If that does not work, increase the density and if you want, then decrease the resize % proportionally. This will get a better readable gif output. You should be able to remove -pointsize and -quality and get the same result.
Post Reply