Skip to content
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

Imagick falling back to GD always #78

Closed
stephenjason89 opened this issue Sep 7, 2020 · 1 comment
Closed

Imagick falling back to GD always #78

stephenjason89 opened this issue Sep 7, 2020 · 1 comment

Comments

@stephenjason89
Copy link

stephenjason89 commented Sep 7, 2020

I can confirm that on my php -m imagick is installed properly
I can also use imagick in the terminal.
I have required ext-imagick on my composer.json.
When i try to process an SVG image it fails with this message
Unsupported image type. GD driver is only able to decode JPG, PNG, GIF or WebP files.

weird because in my config/image.php
driver is set to imagick.

I don't know why it still keeps using GD and failing because gd does not support svg

here's the actual file

https://foodat.ph/img/FoodatWhite.svg

imagemagick version 7.0.7-25 imagick pecl 3.4.4

you can check my php.ini here
https://foodat.ph/

thank you

@stephenjason89
Copy link
Author

Sorry my bad. I didn't see that you need to specify it like so
https://glide.thephpleague.com/1.0/config/image-driver/

i thought editing the config/image.php would work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant