bolt / thumbs

Thumbnail handler for Bolt Images
12 stars 16 forks source link

Rely on images' metadata instead of file extension when determining image-type #23

Closed bacbos closed 9 years ago

bacbos commented 9 years ago

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.

CarsonF commented 9 years ago

Looks good! Thanks @bacbos