One of the benefits of using the WordPress Media Library is that you can make minor changes to the images that have been uploaded. Rotation, resizing, and cropping are just a few of the adjustments available. If you try to crop the image and get the warning “There was a mistake cropping your image,” you’ll need to figure out what’s wrong. The WordPress Error Cropping Images could be caused by one of two things.
What does a cropping error in a photograph look like?
WordPress allows you to create webpages, hobby blogs, and other types of websites. As a result, it always has the ability to upload photos.
Let’s see how the image cropping error appears.
Users can use the “Select and Crop” option in WordPress to upload an image. Then, after adjusting the crop choices, choose “Crop Image.” When something goes wrong, the notification ‘There was a mistake cropping your image’ appears. The WordPress “Media Library” goes grey in this case, resulting in an error.

Solution 1: Install Graphics Draw (GD) package
Another issue that could be creating the error is that the Graphics Draw (GD) package is missing. If this is the case, the package must be installed. Different installations, however, necessitate a different installation method, so verify with your hosting provider before making any modifications to your website or installing this package.
If you require assistance and they are unable to supply it, contact an experienced WordPress developer. These are professionals who can fix your WordPress website.
The PHP-GD library is usually missing, which causes the issue.
Usually, the first thing that comes to mind when we hear about PHP in WordPress is HTML. Image files are also created and edited with PHP. GIF, PNG, JPEG, WBMP, and XMP are supported image formats. PHP allows you to upload an image directly into your browser in most cases. Image functions are also made possible by the GD library.
The first step in troubleshooting is to verify the PHP version on the server, as well as the GD package. We will install the GD package if it is lacking. The GD installation steps, on the other hand, vary based on the server type.
We run the programme for RedHat/ CentOS hosts.
yum install php-gd
Alternatively, if it’s an Ubuntu server, GD can be installed using
apt-get install php-gd
Our Support Team also double-checks that the WordPress package version corresponds to the host’s PHP version.
Finally, the web server must be restarted in order to use the newly installed GD package. This is accomplished on the server via
/etc/init.d/httpd restart
After correcting the problem, the user can pick the image in the “Media Library” and “Insert into post.”
Solution 2 : Upgrade PHP version
The first issue could be that you’re using an out-of-date PHP version. To ensure that your WordPress website operates properly, you have to upgrade the PHP. There are other benefits of upgrading PHP. PHP versions that are more recent increase website performance and security.
This assists you in preventing hackers and other criminals from obtaining access to your site, stealing client data, and more.
Some hosts can assist you in updating the PHP on your website. Some will do it for free, while others would not. Make a backup of your website before performing any PHP upgrades. A minor blunder can result in the complete loss of your website. If you have a busy website, you should strive to finish the upgrade during off-peak hours.
conclusion
Finally, here’s how to fix the error “There Has Been An Error Cropping Your Image.” If the WordPress Error Cropping Images message “There Has Been an Error Cropping Your Image” appears, there are two possible causes. Both are simple fixes, but you may require assistance. Before updating your PHP or installing core applications like Graphics Draw, always check with your hosting provider. Always make a backup of your website before starting any work.