image icon indicating copy to clipboard operation
image copied to clipboard

Storyblok Provider doesn't handle of SVG's as expected

Open mrillusion opened this issue 4 years ago • 1 comments

Current Behaviour When using the Storyblok provider with the base URL set to "https://img2.storyblok.com" to get SVG assets they are transformed into .png assets rather than the original .svg format.

Expected Behaviour When using the Storyblok provider to get assets that could be either vector or raster asset types there should be a way to preserve vector (.svg) assets. This would stop these vector assets from using the base URL "https://img2.storyblok.com" and instead use "https://a.storyblok.com" with no image transformation parameters. This would ensure .svg assets are not transformed into .png assets rather than the original .svg

mrillusion avatar Sep 13 '21 23:09 mrillusion

I run in the same issue today. All my SVG assets looked blurry. As a quick fix you can disable the Stoyblok provider for SVGs only.

Schascha avatar Dec 17 '21 13:12 Schascha