summaryrefslogtreecommitdiff
path: root/lib/utils.js
diff options
context:
space:
mode:
authorSheogorath2019-07-01 19:03:18 +0200
committerGitHub2019-07-01 19:03:18 +0200
commit118314d8ddffad3ffad4939f541ef1beac1bfc71 (patch)
treefce2e7c098e80bad3ced9e5e0c0c5a600cd19d6c /lib/utils.js
parent0d5923d61cd8486e7d65776d8318115d9370380c (diff)
parentf22a563116be7998f430b6ee4a8b68874ec4643c (diff)
Merge pull request #119 from lhw/patch-1
Add SVG image detection based on file extension
Diffstat (limited to '')
-rw-r--r--lib/utils.js2
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
}