Skip to content

Art as lossless WebP - #37

Merged
BaranDev merged 1 commit into
mainfrom
art-webp
Nov 22, 2026
Merged

BaranDev merged 1 commit into
mainfrom
art-webp

Conversation

@BaranDev

Copy link
Copy Markdown
Owner

What

  • Art as lossless WebP: the 2,135 paintings and sprites under art/ went from 10.2 MB of PNG to 3.7 MB of WebP. Every file was checked to be pixel-identical (RGBA, including the color under transparent pixels). The binary embeds the art, so it shrinks by the same amount.
  • Renderer: Image::decode reads WebP (with the webp crate it already used) as well as PNG. Scene loading looks for .webp files.
  • Paintings for the pages: /art/<scene>/<widget>[-night].webp is served as image/webp. The home page and the backdrop use those addresses.

Checks

  • cargo test --release --locked passes, and the goldens confirm the cards are drawn pixel for pixel the same.
  • Site build passes.

Copilot AI balanced review requested due to automatic review settings November 22, 2026 22:09

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.

@BaranDev
BaranDev merged commit 0ed8163 into main Nov 22, 2026
2 checks passed
@BaranDev
BaranDev deleted the art-webp branch November 22, 2026 22:11
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.

2 participants