Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework favicon rasterization #1256

Merged
merged 3 commits into from
Jan 5, 2025
Merged

Rework favicon rasterization #1256

merged 3 commits into from
Jan 5, 2025

Conversation

twm
Copy link
Owner

@twm twm commented Jan 5, 2025

  • Replace optipng with pyoxipng
  • Generate an internally-compressed .ico
  • Add a 128x128 .ico sprite

twm added 3 commits January 4, 2025 16:05
Avoid spawning a subprocess and installing an OS package.
Rather than using icotools to generate an uncompressed .ico file (which
contains ~BMP images internally), generate one with embedded PNGs. This
is a few hundred bytes larger than the result of applying Brotli
over-the-top of the uncompressed .ico, but will enable embedding a larger
icon.

As a side effect, icotools (last release: 2018-03-07) is no longer
required.
Cost: 3,722 bytes → 7,290 bytes
@twm twm merged commit 3682221 into trunk Jan 5, 2025
4 checks passed
@twm twm deleted the oxipng branch January 5, 2025 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant