Logos (PNG, JPEG, WebP) are decoded, trimmed to their ink box, downscaled to 1200 px and re-encoded as a content-addressed print PNG plus a white knockout variant when the logo has alpha; aspect, ink density, mean colour and kind (wordmark, mark, tall) are stored with the settings and frozen in the issue snapshot. Legacy logos are derived at startup. The Test Vendor logo PDF shrinks from 334 KB to 92 KB. Settings gains a Branding section with white and dark previews and a business-name toggle (migration M5).
10 lines
143 B
Rust
10 lines
143 B
Rust
pub mod archive;
|
|
pub mod assets;
|
|
pub mod clients;
|
|
pub mod files;
|
|
pub mod invoice;
|
|
pub mod logo;
|
|
pub mod raw;
|
|
pub mod series;
|
|
pub mod settings;
|