I would like WordPress to use imagemagick for image processing. I’m not sure how to go about it. Right now, I modified the ansible dev.yml playbook and then
Someone can correct me if I’m wrong, but I believe you need the php-imagick package which that ansible role doesn’t appear to install.
Perhaps there’s a more suitable ImageMagick role for PHP?
Edit: At a glance, I can’t seem to find an updated standalone role for ImageMagick that uses the Ubuntu 16+ package php-imagick– they all seem to use the legacy package name php5-imagick
Thank you @swalkinshaw . I removed my changes to dev.yml and modified group_vars/all/main.yml following your instructions. then reprovisioned vagrant provision. No error reported, but still no go.
When adding php-imagick this way, does the extension get installed at the same time as PHP?
I’m asking because it does not appear in the log. This is what is shown:
So, once this is added in that file you have to re-provision the server right? Is there a way to do it without re-provisioning the entire server? I need to add this to a live site so I don’t want to screw with that if I don’t have to.
For those new to Ansible and the Trellis setup - it might help to know that "{{ apt_package_state }}" here basically expands to "present" (apt_package_state is a variable, also defined in the main.yaml file).
(Posting this for others who dig around the forums and run across this, wondering how to install imagemagick.)
block in /trellis/group_vars/all/main.yml as mentioned by @batruji, deployed, and reprovisioned. However, when I ssh into my server and run php -me the imagick module isn’t listed among the rest. I also tried manually reloading php with sudo service php7.4-fpm reload but no luck.
I’m not seeing any errors in the provisioning process, so I’m kind of stumped. Any ideas?