I have a problem when uploading large images: images larger then (approx) 2000×2000 aren’t generating thumbnails. The file is uploaded fine, but no resized version are generated. No errors are shown. If I upload a smaller one, everything works fine and smaller sizes are generated (ex: test-100x100.jpg
)
I’ve contacted my hosting support because I thought this would be a php-gd
problem, but support said everything was fine. Here what we have ruled out:
- Permission problems
- Out of disk space
- Out of memory (works fine on a server with half the amount of memory)
- Max upload limit (in WP and on server)
We even tried another server with the exact same setup, and everything works fine here.
- I use a clean copy of the latest version WP. no plugins activated
- I’ve tried plugins which regenerates thumbnails, but even here all processes end successfully without errors, but no resizing was done.
So I’m no trying to manually debug WP, and I’m having trouble finding the exact file where uploaded files are handled and resized.
If found some classes in /wp-includes
:
class-wp-image-editor.php
class-wp-image-editor-gd.php
But it seems none of them are used during an upload. ( I’ve put die()
in various functions)