Skip to content

Commit

Permalink
Max png.max_deflate=true work with png.libpng=true
Browse files Browse the repository at this point in the history
  • Loading branch information
lilith committed Apr 28, 2020
1 parent 1c69aa8 commit 04bb141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imageflow_riapi/src/ir4/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ impl Ir4Expand{
},
OutputFormat::Png if i.png_libpng == Some(true) => s::EncoderPreset::Libpng {
depth: Some(if i.bgcolor_srgb.is_some() { s::PngBitDepth::Png24 } else { s::PngBitDepth::Png32 }),
zlib_compression: None,
zlib_compression: if i.png_max_deflate == Some(true) { Some(9) } else { None },
matte: i.bgcolor_srgb.map(|sr| s::Color::Srgb(s::ColorSrgb::Hex(sr.to_rrggbbaa_string())))
},
OutputFormat::Png => s::EncoderPreset::Lodepng{
Expand Down

0 comments on commit 04bb141

Please sign in to comment.