Fix --strip safe which was broken in 5b1121c9d
This commit is contained in:
parent
3809421de7
commit
458e9f64a7
1 changed files with 2 additions and 1 deletions
|
|
@ -863,7 +863,8 @@ fn perform_strip(png: &mut PngData, opts: &Options) {
|
|||
*b"cHRM", *b"gAMA", *b"iCCP", *b"sBIT", *b"sRGB", *b"bKGD", *b"hIST", *b"pHYs",
|
||||
*b"sPLT",
|
||||
];
|
||||
for hdr in &PRESERVED_HEADERS {
|
||||
let keys: Vec<[u8; 4]> = raw.aux_headers.keys().cloned().collect();
|
||||
for hdr in &keys {
|
||||
if !PRESERVED_HEADERS.contains(hdr) {
|
||||
raw.aux_headers.remove(hdr);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue