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

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
}