algoo / preview-generator

generates previews of files with cache management
https://pypi.org/project/preview-generator/
MIT License
228 stars 51 forks source link

Support `image/svg` mime type #140

Closed lebouquetin closed 4 years ago

lebouquetin commented 4 years ago

Currently, some SVG images are not previewable because their detected mimetype is image/svg instead of image/svg+xml

Expected:

in inkscape and cairosvg builders, replace

        return ["image/svg+xml"]

with

        return ["image/svg+xml", "image/svg"]
inkhey commented 4 years ago

fixed by #141