#image #separate #size #ico #builder #icons #multi-size

ico-builder

Create multi-size ICO files from separate images

1 unstable release

0.1.0 Apr 20, 2023

#690 in Images

23 downloads per month

MIT/Apache

46KB
175 lines

ICO Builder

A crate for creating multi-size ICO files from separate images. The images are automatically resized to the specified sizes.

Usage

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");

Docs

License

Licensed under either of

at your option.

Contribution

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.

Dependencies

~12MB
~66K SLoC