Image upload / Crop issue

In general, for WordPress, PHP allows uploading an image directly into the browser. And, it’s the GD library that makes image functions work.

‘WordPress error cropping image’ mainly happens because of the absence of the GD (Graphics Draw) package.

To install it, use below command (assuming your php version is 8.1)

sudo apt install php8.1-gd

Last updated