After upgrading ImageMagick
text quality got degraded when convert pdf to jpeg:
Old image
New Image
Conversion command: convert foo.pdf foo.jpeg
Old ImageMagick version:
[root@home]# convert -version
Version: ImageMagick 6.2.8 05/07/12 Q16 file:/usr/share/ImageMagick-6.2.8/doc/index.html
Copyright: Copyright (C) 1999-2006 ImageMagick Studio LLC
generated files size:
-rw-r--r-- 1 root root 139K Apr 2 16:11 foo-0.jpeg
-rw-r--r-- 1 root root 130K Apr 2 16:11 foo-1.jpeg
-rw-r--r-- 1 root root 334K Mar 24 14:27 foo.pdf
After upgrading ImageMagick
[root@home]# convert -version
Version: ImageMagick 6.7.8-10 2012-08-17 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
generated files size:
-rw-r--r-- 1 root root 60K Apr 2 16:11 foo-0.jpeg
-rw-r--r-- 1 root root 55K Apr 2 16:11 foo-1.jpeg
-rw-r--r-- 1 root root 334K Mar 24 14:27 foo.pdf
I've tried using antialias
flag:
convert -antialias foo.pdf foo.jpeg
Which did nothing, I've tried setting an higher quality
:
convert -quality 100 foo.pdf foo.jpeg
and super sampling:
convert -density 288 -background white -alpha off foo.pdf -resize 25% foo.jpeg
both gave bigger files and better results, but ran more time and had lower quality that the old ImageMagick version.
any advises?
-alpha remove
instead of-alpha off
. – Tafoya