I built a community site where users upload their photo and they can crop the thumbnail, but on Facebook it’s clear.
But for some reason, some of them generate empty (actually black jpeg thumbnails).
I tried different solutions, but it looks like this is happening with large images, or maybe on computers where JS is not enabled? I dont know...
On the bottom line, since the number of users with this is very small, I was thinking about creating a patch: detect when the user generates an empty jpeg. Then I could warn them.
Do you know how to do this?
source
share