Python3-8 / rschess

A Rust chess library with the aim to be as feature-rich as possible
https://crates.io/crates/rschess
MIT License
31 stars 4 forks source link

Optimize assets with `oxipng -Z` #1

Closed joshtriplett closed 3 months ago

joshtriplett commented 3 months ago

This reduces the size of the assets from 17760k to 12352k.

This is as small as these assets are going to get while remaining in their curent format and quantity. This isn't a substitute for deduplicating, generating from components on the fly, or otherwise reducing the prerendered assets.

Python3-8 commented 3 months ago

Hi, thank you so much for trying to help, but I actually decided to remove all those PNG images, because first of all I shouldn't be shipping a crate with so many images anyway. Instead I just have SVG images for piece sets, and for board themes the user can now supply a custom color for the light squares and the dark squares.