#icons #image #file-format

ico

A library for encoding/decoding ICO image files

3 releases (breaking)

0.3.0 Dec 26, 2022
0.2.0 Nov 8, 2022
0.1.0 Mar 3, 2018

#485 in Images

Download history 37974/week @ 2024-08-16 39941/week @ 2024-08-23 45585/week @ 2024-08-30 38986/week @ 2024-09-06 36718/week @ 2024-09-13 34485/week @ 2024-09-20 41319/week @ 2024-09-27 41603/week @ 2024-10-04 42320/week @ 2024-10-11 41318/week @ 2024-10-18 40302/week @ 2024-10-25 42909/week @ 2024-11-01 41268/week @ 2024-11-08 47044/week @ 2024-11-15 42192/week @ 2024-11-22 41923/week @ 2024-11-29

179,387 downloads per month
Used in 201 crates (20 directly)

MIT license

70KB
1K SLoC

rust-ico

Build Status Crates.io Documentation

A pure Rust library for encoding/decoding ICO image files.

Overview

An ICO file (.ico) stores a collection of small images of different sizes and color depths. Individial images within the file can be encoded in either BMP or PNG format. ICO files are typically used for website favicons and for Windows application icons.

CUR files (.cur), which store Windows cursor images, use the same file format as ICO files, except that each image also comes with (x, y) hotspot coordinates that determines where on the image the user is pointing. This libary supports both file types.

License

rust-ico is made available under the MIT License.

Dependencies

~1MB
~22K SLoC