Merge pull request #337 from theplant/master

support Palette option for png
This commit is contained in:
Tom 2020-06-09 14:49:25 +02:00 committed by GitHub
commit bb3a4a1ca0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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)