Before I start, the full disclosure is I don’t think this error message makes much difference. After resolving this I have not noticed any improvements with image handling, but some-people (me included) just like clearing warning messages! So, if you’re like me and just want to get rid of the bits of red on your WordPress health check then here’s some help.
When running a WordPress health check you will get the following error
The WordPress Hosting Team maintains a list of those modules, both recommended and required, in the team handbook (opens in a new tab).
Warning The optional module, imagick, is not installed, or has been disabled.
What does Imagick do?
To use their own words “Imagick is a native php extension to create and modify images using the ImageMagick API”. it will enable you to edit your images much easier with the ability to add in loads of different effects and customisations natively in the WordPress media gallery.
It is also used to optimise the image you upload to WordPress and create different version fo images for different situations. Imagick also works with a larger range of image types and is thought to produce higher quality images overall. With that said, WordPress functions perfectly fine without it so installing is at your own risk and completely up to you.
The Fix For Digital Ocean Hosting:
On Debian/Ubuntu SSH into your server using terminal and do the following:
$ sudo apt install php-imagick $ sudo systemctl reload apache2
If you run the PHP-FPM service, you also need to restart PHP-FPM service for Apache.
If you are hosting on anything else, or don’t have access to your server please consult with your host to solve this issue. Also note that the module is optional and not required, to reinforced what I have said previously I have noticed zero difference and merely did it to get rid of the warning – do so at your own risk.