Replies: 2 comments
-
I should handle it more gracefully, but the answer is that Unpic isn't much use for SVGs, because they don't need srcsets or sizes or anything. I'd check the extension and conditionally load a regular img tag if it's an svg. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@ascorbic, wow, thanks for the blazingly fast answer 👍 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I’m encountering an issue with the
@unpic/svelte
package when trying to render an SVG from Cloudinary. It renders the image as a webp instead of the expected svg. When I use the same URL in an tag, the browser correctly renders the svg.Here is an example:
@ascorbic, how to force unpic to load svg?
Beta Was this translation helpful? Give feedback.
All reactions