Image from PDF noise problem

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
michaltme
Posts: 1
Joined: 2011-10-25T00:58:33-07:00
Authentication code: 8675308

Image from PDF noise problem

Post 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 6130 times
szumy4.jpg
szumy4.jpg (29.28 KiB) Viewed 6130 times
Please let me know if you know any solution for this problem, thanks!
Post Reply