#image #identicon #avatar

identicon-rs

identicon-rs is a library built around custom generation of identicon images

26 stable releases (4 major)

4.0.3 Jan 30, 2024
4.0.1 Jan 2, 2023
4.0.0 Dec 24, 2022
3.1.5 Dec 24, 2022
0.2.2 Feb 21, 2019

#101 in Images

Download history 245/week @ 2023-11-02 250/week @ 2023-11-09 183/week @ 2023-11-16 368/week @ 2023-11-23 536/week @ 2023-11-30 311/week @ 2023-12-07 255/week @ 2023-12-14 215/week @ 2023-12-21 282/week @ 2023-12-28 334/week @ 2024-01-04 401/week @ 2024-01-11 491/week @ 2024-01-18 608/week @ 2024-01-25 374/week @ 2024-02-01 243/week @ 2024-02-08 451/week @ 2024-02-15

1,760 downloads per month

MIT/Apache

22KB
406 lines

Identicon-rs

Rust dependency status

This is an Identicon implementation in rust.

Example

use identicon_rs::error::IdenticonError;
use identicon_rs::Identicon;

fn main() -> Result<(), IdenticonError> {
    let conways_glider = String::from("conways-glider");
    let test_string = "identicon_rs";

    // stored example
    let identicon_conways_glider = Identicon::new(&conways_glider);
    identicon_conways_glider.save_image("output_1.png")?;

    // chained example with no border
    Identicon::new(test_string)
        .set_border(0)
        .save_image("output_2.png")?;
    Ok(())
}

You can run this example with cargo run --example main.

The repository contains an example webservice that you can run with cargo run --example webserver.

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

~15MB
~94K SLoC