Go Behind the Experience to see how Tecovas brings the West to life with Sanity ๐Ÿค  July 18th

Converting SVG to raster format using Sanity asset pipeline

7 replies
Last updated: Apr 23, 2020
I know its a bit of a random scenario, but if I wanted to convert an SVG to a raster format (webp, jpg, png, whatever) would the Sanity asset pipeline let me do this? Use-case is where theres a complicated-as-heck vector illustration where the raster would be a smaller filesize.
Apr 23, 2020, 5:01 AM
Apr 23, 2020, 5:03 AM
. Cheers. I was writing
Apr 23, 2020, 5:04 AM
Thanks Knut!
Apr 23, 2020, 5:04 AM
Apr 23, 2020, 5:04 AM
Apr 23, 2020, 5:03 AM
You can set background colors as well
Apr 23, 2020, 5:05 AM
Yeah turns out I was changing URLs while reading the docs for the JS helper lib, absolutely my bad ๐Ÿ‘
Apr 23, 2020, 5:05 AM

Sanityโ€“ build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?