How to use Imagick with CI 4 ? |
10-31-2022, 01:29 PM
(This post was last modified: 10-31-2022, 02:08 PM by captain-sensible. Edit Reason: forgot about re-starting apache )
On the documentation you have :
Code: $image = Config\Services::image('imagick'); in order for me to get no error for Code: $image =\Config\Services::image('imagick'); working i already had ImageMagic , but then also installed php-imagick //you might have to also install the relevant php-*magic for your PC /server Code: //my pkg i hen had to remove the " ;" from in front of : extension = imagick i dont know your OS, but you might look in your relevant php.ini file and see if extension = imagick is enabled by removing ";" On some other Linux like buntu's i think they have to actually write extension=imagick , rather than enable it. Also to take affect i had to re-start apache using Code: sudo systemctl restart httpd you might also need to enable "gd" in php.ini Code: i did $image =\Config\Services::image('imagick'); |
Messages In This Thread |
How to use Imagick with CI 4 ? - by demyr - 10-31-2022, 09:26 AM
RE: How to use Imagick with CI 4 ? - by captain-sensible - 10-31-2022, 01:29 PM
RE: How to use Imagick with CI 4 ? - by kenjis - 10-31-2022, 02:44 PM
RE: How to use Imagick with CI 4 ? - by demyr - 10-31-2022, 08:26 PM
RE: How to use Imagick with CI 4 ? - by kenjis - 10-31-2022, 08:32 PM
RE: How to use Imagick with CI 4 ? - by luckmoshy - 11-01-2022, 12:26 AM
RE: How to use Imagick with CI 4 ? - by kenjis - 11-01-2022, 12:35 AM
|