About this project

SpriteDicing is a cross-engine tool that enables lossless compression of sprite textures by identifying and reusing identical regions across multiple textures. It splits a set of sprite textures into smaller units, discards duplicate units, and bakes the unique units into atlas textures. At runtime, the original sprites are seamlessly reconstructed without needing the original textures in the build, significantly reducing build size when textures share common areas, such as in visual novels where character sprites differ only in small regions like facial expressions. The tool is implemented in Rust and available on crates.io. It provides a command-line interface and can be integrated into game development pipelines. The repository includes documentation and a getting-started guide. SpriteDicing is used in Naninovel, a visual novel engine, and is open-source under the MIT license.