converting pdf to gif including resize/resample

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: converting pdf to gif including resize/resample

Post by anthony »

You need to set a density BEFORE reading the image.

As you have it it reads the image at the default 72 dpi density, then enlarges it (resample) to 200 dpi density. The result as you noticed is blurry. I do not think that is what you are wanting to do!

Also in BOTH command line and perl, read your image BEFORE trying to reduce the number of colors!

For more info on color reduction and techniques see
IM Examples, Quantization and Dithering
http://www.imagemagick.org/Usage/quantize/#colors
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply