Use VIPS_META_BITS_PER_SAMPLE image header instead of palette-bit-depth when available

This commit is contained in:
DarthSim
2023-05-23 19:08:35 +03:00
parent 3048c30e1e
commit 157843ccb3
4 changed files with 22 additions and 11 deletions

View File

@@ -69,7 +69,7 @@ func prepareWatermark(wm *vips.Image, wmData *imagedata.ImageData, opts *options
}
}
wm.RemoveHeader("palette-bit-depth")
wm.RemoveBitsPerSampleHeader()
return nil
}