diff options
author | Sheogorath | 2019-07-01 19:03:18 +0200 |
---|---|---|
committer | GitHub | 2019-07-01 19:03:18 +0200 |
commit | 118314d8ddffad3ffad4939f541ef1beac1bfc71 (patch) | |
tree | fce2e7c098e80bad3ced9e5e0c0c5a600cd19d6c /lib | |
parent | 0d5923d61cd8486e7d65776d8318115d9370380c (diff) | |
parent | f22a563116be7998f430b6ee4a8b68874ec4643c (diff) |
Merge pull request #119 from lhw/patch-1
Add SVG image detection based on file extension
Diffstat (limited to 'lib')
-rw-r--r-- | lib/utils.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/utils.js b/lib/utils.js index 247f85f2..1725f6e8 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -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 } |