Page 1 of 1

Quality problems pdf to scaled jpg

Posted: 2010-04-23T07:30:01-07:00
by JH_mijn
Hello,

Can you help me with the following situation:

I have a PDF (A4 format) and convert it to jpg with imagemagick.
This is fine, sufficient quality.

Now I want to scale generated jpg to a width of 425 pixels.
Now the generated file will lose too much quality.


exec("convert -geometry 1600x1600 -colorspace rgb -density 200x200 -quality 100 -units pixelsperinch ".ORGINEEL_PDF." ".ORGINEEL_JPG);
exec("convert -sharpen 0x5 -scale 425x600 ".ORGINEEL_JPG." ".RESULT_FILE);



How can I improve the outcome for print.

Thanks

Re: Quality problems pdf to scaled jpg

Posted: 2010-04-23T08:39:45-07:00
by fmw42
I don't think -geometry does anything here. It is typically used with compositing two images

try

exec("convert -colorspace rgb -density 200x200 -units pixelsperinch ".ORGINEEL_PDF." -sharpen 0x5 -resize 425x600 -quality 100 ".RESULT_FILE);

or

exec("convert -colorspace rgb -density 200x200 -units pixelsperinch ".ORGINEEL_PDF." -resize 425x600 -sharpen 0x5 -quality 100 ".RESULT_FILE);