Skip to content

Commit

Permalink
Merge pull request #119 from lhw/patch-1
Browse files Browse the repository at this point in the history
Add SVG image detection based on file extension
  • Loading branch information
SISheogorath committed Jul 1, 2019
2 parents 0d5923d + f22a563 commit 118314d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/utils.js
Expand Up @@ -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
}
Expand Down

0 comments on commit 118314d

Please sign in to comment.