Bug in constructor of Image.php #225
Replies: 3 comments 5 replies
-
You can change the image drive before loading the image: \Spatie\Image\Image::useImageDriver(ImageDriver::Gd)
->loadFile('example.jpg') |
Beta Was this translation helpful? Give feedback.
-
I am getting the same error
According to 1 snipet. it doesn't use class properly imageDriver According this documentation it should be My offre is fix in class, or create config for lib. To be able to change Driver via config. |
Beta Was this translation helpful? Give feedback.
-
I could make it work but instead of load I had to use loadFile. Maybe error in documentation |
Beta Was this translation helpful? Give feedback.
-
On line 31 of Image.php, there is a reference to ImagickDriver. However, if I choose to use a different imageDriver, this line is still loaded. I don't have ImagickDriver installed, so I keep getting a class not found error. I don't have enough knowledge to fix this problem (I changed it to new GdDriver() for now, but I should be dynamic.
Beta Was this translation helpful? Give feedback.
All reactions