sveetch / django-smart-media

A suit of tools to use a FileField to upload image with light SVG support
https://django-smart-media.readthedocs.io/en/latest/
MIT License
1 stars 0 forks source link

SVG file thumb is invisible #9

Closed sveetch closed 1 year ago

sveetch commented 1 year ago

The SVG just does not display anymore since their tag does not define any size attribute and dont have any size in CSS, resulting in an image of 0x0 pixels.

This may not occurs with all SVG but not sure. However it sure indeed reproduced with generated images from demo, which use common options so this is to fix.

We need to enforce a specific size to ensure every image formats is correctly displayed.

sveetch commented 1 year ago

Done in 0.3.0-pre.2