Commit a66152c
authored
logo: refactor SVG sources (#536)
1. curl logos:
- use original `OCRAStd.otf` glyph exports for characters (exported via
FontForge).
- use native SVG shapes (replacing paths) where possible.
- use all-integer coordinates.
- retain existing shapes losslessly.
- rework/simplify minimization steps.
- possible to edit them without a GUI editor.
- possible to use individual colors for any element.
New sizes (in bytes):
curl-logo-master: 1630 (was: 8273)
curl-logo: 1444 (657 w/ brotli q=11) (was: 2787)
curl-symbol: 509 (was: 1092)
curl-white-symbol: 473 (was: 1086)
curl-up: 2428 (was: 7958)
Could be minimized more by dropping newlines, but it hinders
readability.
Inspired-by: Йоте <https://social.net.ua/users/joter>
2. remaster wcurl logo:
- reuse curl-logo glyphs as-is.
- use shapes.
- fix minor irregularities and minimization artifacts.
- sync tray symbol thickness with the circle's.
(it's less thick now than before.)
- use all-integer coordinates.
- add editable master copy.
wcurl-logo size (in bytes): 1644 (was: 3301)
3. add the smallest SVG curl logo made by Йоте.
via https://mastodon.social/@joter@social.net.ua/115861547891486989
More size reductions contributed by:
- Йоте <https://social.net.ua/users/joter>
https://mastodon.social/@joter@social.net.ua/115865310124914973
- erinaceus <https://chaos.social/@erinaceus>
https://blog.strangerthanusual.de/blogposts/curl_logo_optimization
https://mastodon.social/@erinaceus@chaos.social/115866618733709150
- @vszakats
Also fix for the left slash (that added 4 .5 decimals).
Currently at: 734 bytes, 717 /w svgo, 352 /w brotli q=11.
Follow-up to 04a61ba #5311 parent 4cbe2f8 commit a66152c
22 files changed
Lines changed: 161 additions & 339 deletions
File tree
- .github
- scripts
- workflows
- logo
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| 214 | + | |
214 | 215 | | |
215 | 216 | | |
216 | 217 | | |
| |||
784 | 785 | | |
785 | 786 | | |
786 | 787 | | |
| 788 | + | |
787 | 789 | | |
788 | 790 | | |
789 | 791 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
40 | 54 | | |
41 | 55 | | |
42 | 56 | | |
| |||
45 | 59 | | |
46 | 60 | | |
47 | 61 | | |
48 | | - | |
| 62 | + | |
49 | 63 | | |
50 | 64 | | |
51 | 65 | | |
| |||
65 | 79 | | |
66 | 80 | | |
67 | 81 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
72 | 87 | | |
73 | 88 | | |
74 | 89 | | |
| |||
This file was deleted.
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
18 | 16 | | |
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
22 | 20 | | |
23 | 21 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
32 | 25 | | |
33 | 26 | | |
34 | | - | |
35 | | - | |
36 | 27 | | |
37 | 28 | | |
38 | 29 | | |
39 | 30 | | |
40 | 31 | | |
41 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
| |||
Loading
Loading
Loading
0 commit comments