mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-10 16:00:26 -07:00
fix(background): pass proper background RGB color
This commit is contained in:
parent
bffc7652bb
commit
5ca57a1e68
3 changed files with 5 additions and 7 deletions
3
vips.go
3
vips.go
|
|
@ -304,7 +304,8 @@ func vipsFlattenBackground(image *C.VipsImage, background Color) (*C.VipsImage,
|
|||
}
|
||||
|
||||
if vipsHasAlpha(image) {
|
||||
err := C.vips_flatten_background_brigde(image, &outImage, (*C.double)(&backgroundC[0]))
|
||||
err := C.vips_flatten_background_brigde(image, &outImage,
|
||||
backgroundC[0], backgroundC[1], backgroundC[2])
|
||||
if int(err) != 0 {
|
||||
return nil, catchVipsError()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue