S
S
sl4mmer2011-06-08 12:28:32
PHP
sl4mmer, 2011-06-08 12:28:32

Imagick. Image quality when converting?

To create previews for pdf documents, I use the construction of the form

$img=new Imagick($this-&gt;tempNum.'.pdf[0]');<br/>
$img-&gt;setImageFormat('jpeg');<br/>
$img-&gt;writeImage($this-&gt;tempNum.'.jpg');<br/>

But the quality of the resulting image, unfortunately, is quite low ...
Are there any ways to improve it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
@
@antoo, 2011-06-08
@sl4mmer

php.net/manual/en/function.imagick-setcompressionquality.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question