i want to convert the PDF to image.But when the out put image generate it\'s get blur from original.Here is code
$uploadfile = \".pdf[53]\";
$img = new Imagi
Remove the resample and the resize calls and see what you get. It looks like you are shrinking it and then upsizing it.
edit: setResolution(300,300) is too late -- the image has already been rendered. Do it like this:
$im = new Imagick();
$im->setResolution( 300, 300 );
$im->readImage( $uploadfile );