mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-07 21:48:13 -08:00
enable vipsAffine to use Extend option value and send it to lipvips
this will change the default from the one that lipvips use which is `background` to the ones that bimg use which is `C.VIPS_EXTEND_BLACK` but because the lip add extra 1 or .5 pix the background is considered black anyway so this will not affect anyone but will fix the bug of having border on the right and bottom of some images [ch15924]
This commit is contained in:
parent
daafbf6d97
commit
cd2783eff0
3 changed files with 9 additions and 5 deletions
|
|
@ -216,7 +216,7 @@ func transformImage(image *C.VipsImage, o Options, shrink int, residual float64)
|
|||
if residualx < 1 && residualy < 1 {
|
||||
image, err = vipsReduce(image, 1/residualx, 1/residualy)
|
||||
} else {
|
||||
image, err = vipsAffine(image, residualx, residualy, o.Interpolator)
|
||||
image, err = vipsAffine(image, residualx, residualy, o.Interpolator, o.Extend)
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue