1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-11-27 22:48:53 +02:00

Use palette-bit-depth for palette bitdepth instead of VIPS_META_BITS_PER_SAMPLE

This commit is contained in:
DarthSim
2023-11-13 20:26:58 +03:00
parent 33bbfd0ed9
commit 07528dbecf
4 changed files with 15 additions and 16 deletions

View File

@@ -553,8 +553,8 @@ func (img *Image) SetBlob(name string, value []byte) {
C.vips_image_set_blob_copy(img.VipsImage, cachedCString(name), unsafe.Pointer(&value[0]), C.size_t(len(value)))
}
func (img *Image) RemoveBitsPerSampleHeader() {
C.vips_remove_bits_per_sample(img.VipsImage)
func (img *Image) RemovePaletteBitDepth() {
C.vips_remove_palette_bit_depth(img.VipsImage)
}
func (img *Image) CastUchar() error {