Skip to content

Commit 66277b3

Browse files
committed
try with fresh export from figma
1 parent 5920f10 commit 66277b3

File tree

2 files changed

+28
-12
lines changed

2 files changed

+28
-12
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ This is the result I ended up on for this header, originally (I ended up using a
4949
![SVG: SVG cross-codec-compilation - SVG](/assets/img/posts/svg-ccc/composite.svg)
5050

5151
```xml
52-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" viewBox="0 0 918 560">
52+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 918 560">
5353
<g clip-path="url(#a)">
5454
<path fill="url(#b)" d="M-134 0H918v560H-134z"/>
5555
<g filter="url(#c)" style="mix-blend-mode:overlay">
@@ -67,9 +67,9 @@ This is the result I ended up on for this header, originally (I ended up using a
6767
<rect width="918" height="560" fill="#fff" rx="7"/>
6868
</clipPath>
6969
<pattern id="c" width="1" height="1" patternContentUnits="objectBoundingBox">
70-
<use xlink:href="#d" transform="matrix(.00204 0 0 .00184 -.013 -.03)"/>
70+
<use href="#d" transform="matrix(.00204 0 0 .00184 -.013 -.03)"/>
7171
</pattern>
72-
<image id="d" xlink:href="data:image/png;base64,...
72+
<image id="d" href="data:image/avif;base64,...
7373
```
7474
7575
Tools like Figma usually don't support AVIF yet, so you may have to do something like export the SVG with just the raw png in the svg, delete out it's href and replace it with the avif data. This can get a little cumbersome, and it may just be worth it using a reasonably well encoding AVIF. Hopefully the tooling starts supporting AVIF more broadly and it will get a little simpler.

0 commit comments

Comments
 (0)