mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-12 17:00:28 -07:00
Cleaner fix
This commit is contained in:
parent
31a54299fb
commit
a1b9efdb97
3 changed files with 21 additions and 16 deletions
11
vips.go
11
vips.go
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue