Skip to content
Permalink
Browse files

Merge pull request #119 from lhw/patch-1

Add SVG image detection based on file extension
  • Loading branch information...
SISheogorath committed Jul 1, 2019
2 parents 0d5923d + f22a563 commit 118314d8ddffad3ffad4939f541ef1beac1bfc71
Showing with 2 additions and 0 deletions.
  1. +2 −0 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
}

0 comments on commit 118314d

Please sign in to comment.
You can’t perform that action at this time.