Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
knzai committed Sep 2, 2024
1 parent 06fd636 commit ec24ae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _posts/2024-09-01-svg-ccc.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ With essentially all browsers being some variation of [evergreen](https://nordvp
{:toc}

## SVG Compositing
SVG support is now good enough that you can avoid a lot of said tradeoffs by using an SVG as a container for two images with different codecs/formats. The images are then base64 data encoded directly into the same file. This allows you to optimize your graphics separately from your photos, which overall makes for a much smaller size, at essentially equivalent quality, in a single file, which is **groundbreaking**.
SVG support is now good enough that you can avoid a lot of said tradeoffs by using an SVG as a container for two images with different codecs/formats. The images are then base64 data encoded directly into the same file. This allows you to optimize your graphics separately from your photos, which overall makes for a much smaller size, at essentially equivalent quality, in a single file. I doubt I'm anywhere near the first to notice this, but it should be talked about more widely, because it's **groundbreaking**.
```xml
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<image xlink:href="data:image/png;base64,[DATA]"/>
Expand Down

0 comments on commit ec24ae7

Please sign in to comment.