I use Imagick extension for creating PDF thumbnailns on my website. It works great, but sometimes I get images with unexpected and not regular noise. Below I include simple source code which I use to create thumbnail:
Code: Select all
$width = 80;
$height = 0;
$image = new Imagick($pdf_file_path . "[$page_number]");
$image->scaleImage($width, $height);
$image->setformat("jpeg");
$image->writeImage($thumbnail_path());
Please let me know if you know any solution for this problem, thanks!