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'); (10-31-2022, 09:26 AM)demyr Wrote: The framework needs the following extension(s) installed and loaded: IMAGICK. As it is, plase install imagick extention. https://www.php.net/manual/en/imagick.installation.php
Thank you guys for the answers.
Let me ask you some other questions that are in my mind: Actually I'm happy with 'gd' for general purpose but as I need to catch the cover pages of pdf files as jpg, I need this imagick. Can I continue using both or should I completely go on with imagick? Are there any differences? Additionally, Imagick looks richer than gd and CodeIgniter comes with gd as default. Is this extra dowload (set up) necessity the reason for this default choice?
ImageMagickHandler is actually a work in progress, and has preformance issues.
See https://github.com/codeigniter4/CodeIgni...ssues/6317 (10-31-2022, 08:32 PM)kenjis Wrote: ImageMagickHandler is actually a work in progress and has performance issues. Thank @kenji I was stumbled with image magic with some performance but now good to hear that you are working on it Codeigniter First, Codeigniter Then You!!
yekrinaDigitals
@luckmoshy Sorry, I just explained the current status of ImageMagickHandler.
I'm not working on it. |
Welcome Guest, Not a member yet? Register Sign In |