Merge pull request #119 from lhw/patch-1

Add SVG image detection based on file extension
This commit is contained in:
Sheogorath 2019-07-01 19:03:18 +02:00 committed by GitHub
commit 118314d8dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,6 +21,8 @@ exports.getImageMimeType = function getImageMimeType (imagePath) {
return 'image/png' return 'image/png'
case 'tiff': case 'tiff':
return 'image/tiff' return 'image/tiff'
case 'svg':
return 'image/svg+xml'
default: default:
return undefined return undefined
} }