Embed WebP images in SVG
Although most vector programs such as Inkscape and Illustrator do not support embedding WebP compressed images in SVG, it is possible to embed webp in svg and most web browsers support it.
Web offers amazing compression compared to png and jpg, has transparency support and is a great option for embedding images in svg.
To embed webp in svg you just need to base64 encode the webp image and include in your svg file. I find it easiest to embed the original png/jpg image and then update the xlink:href.
- Read more about Embed WebP images in SVG
- Log in to post comments