mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-16 02:45:54 -07:00
Merge pull request #307 from OrderMyGear/eslam/ch15924/some-product-images-have-a-border
enable vipsAffine to use `Extend` option value and send it to lipvips
This commit is contained in:
commit
7884549637
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