Page 1 of 1

Image from PDF noise problem

Posted: 2011-10-25T02:22:18-07:00
by michaltme
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:

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());
And here are samples of noised images:
szumy.jpg
szumy.jpg (27.01 KiB) Viewed 6132 times
szumy4.jpg
szumy4.jpg (29.28 KiB) Viewed 6132 times
Please let me know if you know any solution for this problem, thanks!