Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive

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
Ah,
&fm=png
. Cheers. I was writing
format
lol
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?