images
images copied to clipboard
SVG animation support
It seems that SVG that contains animation doesn't work.
However, SVG without animation works.
It seems doesn't manage gradient too: https://images.weserv.nl/?url=https://upload.wikimedia.org/wikipedia/commons/3/31/Rainbow-gradient-fully-saturated.svg
@andrieslouw or @kleisauke any information about this issue ?
librsvg (the library we use to load SVG images) doesn't support CSS-based animations.
The second SVG image you posted does not contain a width
and/or height
attribute, nor does it define a viewBox
attribute, so it will default to 1x1 pixel. You could explicitly set the &w=
and/or &h=
parameter to load these kind of images. For example:
https://images.weserv.nl/?url=https://upload.wikimedia.org/wikipedia/commons/3/31/Rainbow-gradient-fully-saturated.svg&w=250
Thank you for the quick answer.
So… for animation this can take years/decades/Inifinity to be supported :joy: because it seems that it is not planned by librsvg.
This is being tracked upstream within issue https://gitlab.gnome.org/GNOME/librsvg/-/issues/307.