Repository navigation
Conversation
Network logos are shown at 20 to 48 px, but many files were far larger: zora.png was a 1.5 MB, 2390 px image. Every raster over 256 px is now downscaled to fit 256 x 256 (aspect ratio, transparency and color profile kept), and soneium.svg embeds its image at 256 px instead of 561 px. 63 files go from 5.00 MB to 1.55 MB. File names and formats are unchanged, so no metadata entry changes. Nine files held a different format than their extension: WebP, AVIF or JPEG data in .png files, and AVIF or PNG data in .jpg files. The .png files are now real PNGs. hemi.jpg and merlin.jpg need transparency, which JPEG cannot hold, so both are now PNG data. The PNGs are larger than the WebP and AVIF they replace, but any decoder can read them. ink.svg was the Ink wordmark. It is now the Ink icon on its own: the same path, cropped to the icon's 275 x 275 box. The README now lists these rules for new logos. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Re-encoding adi.jpg, hashkey.jpg and invarch.jpeg at 256 px added a second round of JPEG compression to save 2 to 34 KB. Every other change in this PR is lossless apart from the resize, so these three go back to their original bytes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
karelxfi
marked this pull request as ready for review
September 26, 2026 10:16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Network logos are shown at 20 to 48 px next to the chain name, in the docs and on sqd.dev, but many files were far larger than that.
zora.pngalone was a 1.5 MB, 2390 px image, downloaded in full wherever Zora's logo appears.Changes
All file names stay the same, so no
metadata.ymlentry changes. Apart from the resize itself, every change is lossless.Size. PNGs over 256 px are downscaled to fit 256 × 256 (Lanczos, with aspect ratio, transparency and color profile kept) when that makes the file smaller. 13 PNGs that are already only 2 to 18 KB at 257 to 600 px stay as they are, and the three JPEGs are untouched to avoid a second round of JPEG compression.
soneium.svgnow embeds its image at 256 px instead of 561 px. 60 files go from 4.94 MB to 1.52 MB, and the wholeimg/networksfolder from 5.51 MB to 2.09 MB.Formats that didn't match the extension. Nine files held different data than their name says:
blast.png,kyoto.png,sonic.pngandtanssi.pngheld WebP.naka-chain.pngheld AVIF.katana.pngandkintsugi.pngheld JPEG.hemi.jpgheld AVIF.merlin.jpgheld PNG.The seven
.pngfiles are now real PNGs.hemi.jpgandmerlin.jpguse transparency, which JPEG can't hold, so both are now PNG data. Browsers read them either way, but PNG also works in tools that only read PNG and JPEG. Six of these files are larger than the WebP, AVIF or JPEG they replace; the biggest increase issonic.png, from 11 KB to 67 KB.Ink.
ink.svgwas the full wordmark, which shrinks to an unreadable strip at 20 px. It is now the Ink icon alone: the same path, cropped to its 275 × 275 box. Both Ink datasets already point at this file.README. New section with these rules for future logos.
Verification
sonic.pngfrom WebP,hemi.jpgfrom AVIF) are pixel-identical to the originals.bittensor.pngandtinker.png. The AVIF sources are tagged sRGB or untagged and the WebP sources have no profile, so the PNG versions show the same colors.soneium.svglooks the same at 30, 48 and 128 px, with slightly smoother edges at 48 px because the browser now scales it down from 256 px instead of 561 px.node --test tests/*.test.jspasses (6 tests).GitHub's 2-up view shows each image at its own size, so a 256 px file appears next to a 2000 px original. At the 20 to 48 px where logos are used, 256 px is still more than enough, even on 3× screens.
Rollout
cdn.subsquid.iocaches these files for up to 4 hours, so updated files can take that long to appear after merge.🤖 Generated with Claude Code