Cleaner fix

This commit is contained in:
James Schofield 2016-11-10 15:15:52 -05:00
parent 31a54299fb
commit a1b9efdb97
3 changed files with 21 additions and 16 deletions

11
vips.go
View file

@ -55,8 +55,6 @@ type vipsSaveOptions struct {
Interlace bool
NoProfile bool
Interpretation Interpretation
Flatten bool
Background Color
}
type vipsWatermarkOptions struct {
@ -343,15 +341,6 @@ func vipsPreSave(image *C.VipsImage, o *vipsSaveOptions) (*C.VipsImage, error) {
image = outImage
}
// Flatten image on a background, if necessary
if o.Flatten {
var err error
if outImage, err = vipsFlattenBackground(image, o.Background); err != nil {
return nil, err
}
image = outImage
}
return image, nil
}