support Palette option for png

This commit is contained in:
Azuma Fan 2020-06-08 16:43:04 +08:00
parent 3a950d13cd
commit dfd363a962
4 changed files with 8 additions and 3 deletions

View file

@ -176,6 +176,7 @@ func saveImage(image *C.VipsImage, o Options) ([]byte, error) {
OutputICC: o.OutputICC,
StripMetadata: o.StripMetadata,
Lossless: o.Lossless,
Palette: o.Palette,
}
// Finally get the resultant buffer
return vipsSave(image, saveOptions)