-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gd driver is unable to init from Imagick object. Intervention Error initFromImagick #1
Comments
Imagick is another Image Driver, and have powerful ability. If you want to use it you must install is ahead. Gd drive does not handle pdf file. more information for you: http://php.net/manual/en/book.imagick.php |
@jianhuawang Thanks... vendor\intervention\image\src\Intervention\Image\Gd\Decoder.php
This is how I'm instatiating the class |
@jianhuawang The bug is coming from this Method ` public function saveImage($pagePointer = 1)
This line where Image Intervention is being called to be precise |
Did you install imagick extension? download from here: http://pecl.php.net/package/imagick/3.4.3/windows I suggest you search the operations detail by google or other search engine. |
@jianhuawang Both Imagick and Ghostscript is installed and working after reading the Error carefully and going through Intervention Decode.php class, I saw that the GD driver won't work on Imagick file. So i needed to change the default driver from GD to Imagick by adding this line of code in the saveImage method in your class
And this was able to fix it |
No description provided.
The text was updated successfully, but these errors were encountered: