Converting SVG to Raster Format - Would the Sanity Asset Pipeline Let Me Do This?

6 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
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.io – build remarkable experiences at scale

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

Categorized in