Image from PDF noise problem
Posted: 2011-10-25T02:22:18-07:00
Dear ImageMagick Users, this is my first post so welcome everybody.
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:
And here are samples of noised images:
Please let me know if you know any solution for this problem, thanks!
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!