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
1 changed files with 2 additions and 0 deletions

View File

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