I just set hard crop in function 676x429 hard crop.

add_image_size('home-slide', 676, 429, true);

Its working but client uploaded a large file something like 3800x3800 (5.73mb) and it doesn't crop. But when I reduce the size by 1600x1600 and it works.

Why it doesn't cropping on large files?

1 Answer 1


By default, WordPress uses the GD Graphics Library to resize and crop images. On servers with limited resources however, GD fails on images with large file sizes.

If you really need to keep the size of your images, but want to keep your file sizes down, consider processing your images first with tinypng.com. Their online compressor retains as much quality as possible, processes up to 20 files at a time, and is free.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.