This article covers full detailed solution to the issue “There has been an error cropping your image” in PHP.
If you ever get an error while uploading and cropping an image on WordPress – Error like below
There has been an error cropping your image.
For this very blog when I was trying to upload an image to set it as a favicon I got this error
To find the GD Library package within CentOS repository
$ sudo yum list available | grep 'gd'
Identify GD Library package name and install it
$ sudo yum install php-gd
Restart apache service
$ sudo service httpd restart
Thanks for reading.
Hope It was of some help to you.
Link to other useful articles