| Crates.io | ico-builder |
| lib.rs | ico-builder |
| version | 0.2.0 |
| created_at | 2023-04-20 07:02:39.086453+00 |
| updated_at | 2026-01-13 11:38:17.009146+00 |
| description | Create multi-size ICO files from separate images |
| homepage | |
| repository | https://codeberg.org/tautropfli/ico-builder |
| max_upload_size | |
| id | 844134 |
| size | 62,697 |
A crate for creating multi-size ICO files from separate images. The images are automatically resized to the specified sizes.
This example creates an ICO with the bare minimum icon sizes: 16x16, 24x24, 32x32, 48x48, 256x256. For each size, the closest source file is chosen and resized as needed.
use ico_builder::IcoBuilder;
IcoBuilder::default()
.add_source_file("app-icon-32x32.png")
.add_source_file("app-icon-256x256.png")
.build_file("app-icon.ico");
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.