How to use the Sanity CDN to Transform SVG Images to Bitmap/PNG Images
I can use the URL, but my current setup works using GROQ
*[_type == 'blogPost'] [0...10] {
images[] {
asset->{
url,
extension == 'svg' => {
'url': url + '?fm=png'
}
}
}
}Was this answer helpful?
Sanity – Build the way you think, not the way your CMS thinks
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.