diff --git a/src/reduction/alpha.rs b/src/reduction/alpha.rs index 145f7fe4..06df0676 100644 --- a/src/reduction/alpha.rs +++ b/src/reduction/alpha.rs @@ -117,8 +117,8 @@ fn reduced_alpha_to_up(png: &PngImage, bpc: usize, bpp: usize) -> Vec { reduced[offset..(offset + bpp - bpc)] .copy_from_slice(&pixel[..(bpp - bpc)]); } - transparent[col] = 0; } + transparent[col] = i32::MIN; // Prevent copying upwards again reduced.extend_from_slice(pixel); line_transparent = false; }