Fixing WordPress image cropping on CentOS


You know the drill. You upload the image, you want a nice crop, but then

There has been an error cropping your image.

Ouch. Fortunately it’s a simple issue with a very easy fix:

yum install php-gd
systemctl restart php-fpm
systemctl restart nginx

Aaand that’s it.