mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-01 22:29:27 -06:00
## Summary - Optimized 13 logo files, reducing total size by ~560KB - Converted hylo.svg (321KB) and nim.svg (126KB) to optimized PNGs (27KB, 13KB) - Resized oversized images to max 256×256 while preserving aspect ratios - Optimized SVGs with SVGO where beneficial - Fixed file permissions (removed execute bits from image files) - Added comprehensive README.md with optimization guidelines ## Files Changed - `lib/languages.ts`: Updated references from hylo.svg → hylo.png, nim.svg → nim.png - `public/logos/`: Optimized multiple logo files - `public/logos/README.md`: New optimization guidelines for future logo additions ## Size Reductions - hylo.svg → hylo.png: 321KB → 27KB (92% reduction) - nim.svg → nim.png: 126KB → 13KB (90% reduction) - scala.png: 79KB → 14KB (82% reduction) - haskell.png: 19KB → 6.5KB (66% reduction) - pony.svg: 53KB → 35KB (34% reduction) - odin.png: 48KB → 27KB (44% reduction) - nix.svg: 26KB → 5KB (81% reduction) - gimple.svg: 21KB → 11KB (48% reduction) - spice.png: 16KB → 9.3KB (42% reduction) - hook.png: 14KB → 9.3KB (34% reduction) - hook-dark.png: 13KB → 9.3KB (28% reduction) ## Test plan - [x] Verify all logos display correctly in the language selection UI - [x] Confirm no broken image references - [x] Check that webpack bundle size warnings are reduced - [x] Ensure visual quality is acceptable at small icon sizes 🤖 Generated with [Claude Code](https://claude.ai/code) --------- Co-authored-by: Claude <noreply@anthropic.com>
26 lines
1.8 KiB
XML
26 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Generator: Adobe Illustrator 16.0.4, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
width="306px" height="344.35px" viewBox="0 0 306 344.35" enable-background="new 0 0 306 344.35" xml:space="preserve">
|
|
<path fill="#00599C" d="M302.107,258.262c2.401-4.159,3.893-8.845,3.893-13.053V99.14c0-4.208-1.49-8.893-3.892-13.052L153,172.175
|
|
L302.107,258.262z"/>
|
|
<path fill="#004482" d="M166.25,341.193l126.5-73.034c3.644-2.104,6.956-5.737,9.357-9.897L153,172.175L3.893,258.263
|
|
c2.401,4.159,5.714,7.793,9.357,9.896l126.5,73.034C147.037,345.401,158.963,345.401,166.25,341.193z"/>
|
|
<path fill="#659AD2" d="M302.108,86.087c-2.402-4.16-5.715-7.793-9.358-9.897L166.25,3.156c-7.287-4.208-19.213-4.208-26.5,0
|
|
L13.25,76.19C5.962,80.397,0,90.725,0,99.14v146.069c0,4.208,1.491,8.894,3.893,13.053L153,172.175L302.108,86.087z"/>
|
|
<g>
|
|
<path fill="#FFFFFF" d="M153,274.175c-56.243,0-102-45.757-102-102s45.757-102,102-102c36.292,0,70.139,19.53,88.331,50.968
|
|
l-44.143,25.544c-9.105-15.736-26.038-25.512-44.188-25.512c-28.122,0-51,22.878-51,51c0,28.121,22.878,51,51,51
|
|
c18.152,0,35.085-9.776,44.191-25.515l44.143,25.543C223.142,254.644,189.294,274.175,153,274.175z"/>
|
|
</g>
|
|
<g>
|
|
<polygon fill="#FFFFFF" points="255,166.508 243.666,166.508 243.666,155.175 232.334,155.175 232.334,166.508 221,166.508
|
|
221,177.841 232.334,177.841 232.334,189.175 243.666,189.175 243.666,177.841 255,177.841 "/>
|
|
</g>
|
|
<g>
|
|
<polygon fill="#FFFFFF" points="297.5,166.508 286.166,166.508 286.166,155.175 274.834,155.175 274.834,166.508 263.5,166.508
|
|
263.5,177.841 274.834,177.841 274.834,189.175 286.166,189.175 286.166,177.841 297.5,177.841 "/>
|
|
</g>
|
|
</svg>
|