I want to convert a pdf page to a png image with Imagick.
I tried with PHP, but the image quality was very low.When I tried with command line, the result was pe
From the manual http://php.net/manual/en/imagick.setresolution.php
Imagick::setResolution() must be called before loading or creating an image.
See this answer Pdf to image using php-imagick api