Skip to content

Commit 87ca391

Browse files
committed
try this
1 parent 66277b3 commit 87ca391

File tree

2 files changed

+1
-42
lines changed

2 files changed

+1
-42
lines changed

_posts/2024-09-01-svg-ccc.md

-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ description: >
1212
toot_id: 113064123926263617
1313
---
1414

15-
ETA: Base64 inlined photos embedded in SVGs have worse mobile support than I first thought. If I either figure out a workaround, or support improves enough, it'll be a handy technique for truly optimal image sizes. Overall though AVIF is an incredible format that has general browser support, even if the tooling doesn't always support it yet (and neither do all implementations of OpenGraph, so you still need your trusty PNGs, etc)
16-
17-
--
18-
1915
When using images on the web you've always had to choose between size and quality. This gets particularly pointed when you have one image containing both a photo and crisp lines (for instance text or a diagram). Compressing both of those in the same image will generally either require a large image, or the compression artifacts will become apparent, especially around the graphic component's lines.
2016

2117
For instance, here's the header image for this post, originally a 627kb PNG, maximally compressed down to a 21kb jpg (a "0% quality" setting in the app I was using), to exaggerate the effect beyond what I'd ever typically settle on (I may do a later draft of this with some line-art to make it more obvious):

0 commit comments

Comments
 (0)