parent
99eccf3f30
commit
cb132b1cc4
1 changed files with 12 additions and 0 deletions
|
|
@ -410,4 +410,16 @@ pub fn postprocess_chunks(aux_chunks: &mut Vec<Chunk>, ihdr: &IhdrData, orig_ihd
|
||||||
!invalid
|
!invalid
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove iDOT which will necessarily be invalid after successful optimization
|
||||||
|
aux_chunks.retain(|c| {
|
||||||
|
let invalid = &c.name == b"iDOT";
|
||||||
|
if invalid {
|
||||||
|
trace!(
|
||||||
|
"Removing {} chunk as it no longer matches the IDAT",
|
||||||
|
std::str::from_utf8(&c.name).unwrap()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
!invalid
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue