Site icon RohuTech

There has been an error cropping your image

There has been an error cropping your image - Polaroid images organised

There has been an error cropping your image - Photo by Soragrit Wongsa on Unsplash

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

After searching for a while found out that it was because GD library for PHP which was not installed on the server

To find the GD Library package within CentOS repository

$ sudo yum list available | grep 'gd'
List of Packages having ‘GD’ key-word under CentOS Repository

Identify GD Library package name and install it

$ sudo yum install php-gd
GD library Dependencies Resolved

Restart apache service

$ sudo service httpd restart

Thanks for reading.
Hope It was of some help to you.

Link to other useful articles

Exit mobile version