icns-rs

Easily create .icns files (Mac Icons) with this Rust library or the included CLI app.
Log | Files | Refs | LICENSE

commit 591b943ee9cbd1f1bc49e738b6ba4d543b9e4bff
parent b14909fa01f8d4062e642c63846b63e7ebb9fe4a
Author: Jack Mordaunt <jackmordaunt@gmail.com>
Date:   Thu,  3 Jan 2019 22:53:29 +1300

[~] Depend on my own fork until merged

Diffstat:
MCargo.toml | 3+++
Msrc/encode.rs | 2+-
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/Cargo.toml b/Cargo.toml @@ -23,6 +23,9 @@ deflate = "0.7.2" git = "https://github.com/JackMordaunt/image-png.git" branch = "deflate/specify-compression" +# [dependencies.png] +# path = "../../forks/image-png" + [dev-dependencies] clap = "2.32.0" num-complex = "0.2" \ No newline at end of file diff --git a/src/encode.rs b/src/encode.rs @@ -123,7 +123,7 @@ impl<W: Write> PNGEncoder<W> { encoder .set(ct) .set(bits) - .set(deflate::CompressionOptions::huffman_only()); + .set(png::Compression::Default); let mut writer = encoder.write_header()?; writer.write_image_data(data).map_err(|e| e.into()) }