I had the issue that thumbnails of PNG's failed (produced entirely black images) when they were mistakenly named file.jpg. This PR should fix those issues by determining the image-type based off of its metadata instead of relying on its file extension.
I had the issue that thumbnails of PNG's failed (produced entirely black images) when they were mistakenly named file.jpg. This PR should fix those issues by determining the image-type based off of its metadata instead of relying on its file extension.