From a7be8751dce82e6d42936718134a1083b875768c Mon Sep 17 00:00:00 2001 From: Andrew Date: Sun, 7 May 2023 20:26:28 +1200 Subject: [PATCH] Don't force output due to interlacing flag --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 99a0d6fc..2b27c3c0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -847,7 +847,7 @@ fn srgb_rendering_intent(mut iccp: &[u8]) -> Option { /// Check if an image was already optimized prior to oxipng's operations fn is_fully_optimized(original_size: usize, optimized_size: usize, opts: &Options) -> bool { - original_size <= optimized_size && !opts.force && opts.interlace.is_none() + original_size <= optimized_size && !opts.force } fn perform_backup(input_path: &Path) -> PngResult<()> {