uncaught exception error?
Posted: 2013-09-13T09:22:57-07:00
When i load up an Imagick object with too many images I get an uncaught exception:
If the $pages array has less than 6 images which total less than 1.3M then this works fine
OTHERWISE I GET THIS ERROR:
Fatal error: Uncaught exception 'ImagickException' with message 'unable to load module `/usr/lib64/ImageMagick-6.7.6/modules-Q16/coders/pdf.la':
file not found @ error/module.c/OpenModule/1278' in /home/nclos2/public_html/testing/itp.php:47
Stack trace: 0 /home/nclos2/public_html/testing/itp.php(47): Imagick->setimageformat('pdf')
1 /home/nclos2/public_html/testingblast_01.php(170): ImgToPdf->addTextToImage(Array, '520a7262da638', NULL)
2 {main} thrown in /home/nclos2/public_html/testing/itp.php on line 47
Hoping someone has dealt with this before.
Code: Select all
$pdf = new Imagick($pages);
$pdf->setImageFormat('pdf');
$pdf->writeImages($temp_path.'/offer2.pdf', true);
OTHERWISE I GET THIS ERROR:
Fatal error: Uncaught exception 'ImagickException' with message 'unable to load module `/usr/lib64/ImageMagick-6.7.6/modules-Q16/coders/pdf.la':
file not found @ error/module.c/OpenModule/1278' in /home/nclos2/public_html/testing/itp.php:47
Stack trace: 0 /home/nclos2/public_html/testing/itp.php(47): Imagick->setimageformat('pdf')
1 /home/nclos2/public_html/testingblast_01.php(170): ImgToPdf->addTextToImage(Array, '520a7262da638', NULL)
2 {main} thrown in /home/nclos2/public_html/testing/itp.php on line 47
Hoping someone has dealt with this before.