From time to time, we’ve got issues with image thumbnails not being generated correctly. This is most likely a server issue (timeout, memory, whatever): the final image has the proper ratio and size but is only partly rendered, e. g. the upper quarter or upper half, the rest is grey. Usually, on next load, everything is fine again.
With caching enabled, though, Kirby stores this broken image.
Is there a way for Kirby to determine if thumb generation was actually successful before generating the cache file?