←back to thread

An SVG is all you need

(jon.recoil.org)
258 points sadiq | 6 comments | | HN request time: 0.264s | source | bottom
1. martijn_himself ◴[] No.46236911[source]
>They are supported on just about every device and platform

Except they aren't. I recently used a simple SVG in a background and Safari wasn't able to render it properly so after trying lots of different things I gave up and used different sizes of raster images instead.

replies(3): >>46236993 #>>46237473 #>>46237957 #
2. avsm ◴[] No.46236993[source]
What was the SVG that didn't work? In Jon's example in the original post, the SVG he embeds there was one he wrote in around 2005. That's a pretty impressive run for it to render 20 years on...
3. stanac ◴[] No.46237473[source]
SVGs also are mostly unsupported for og:image tags (dependents on the app/browser). I know it's supper specific and I am not even sure if open graph is standardized protocol or not, but it's used everywhere.
replies(2): >>46237666 #>>46237921 #
4. airstrike ◴[] No.46237666[source]
yeah, I was super disappointed to find that out when I built previews for https://hexrgb.pages.dev
5. ◴[] No.46237921[source]
6. SoKamil ◴[] No.46237957[source]
They are also not supported on iOS native apps. We use pdfs for vectors.