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:
Tom 2020-06-06 17:40:29 +02:00 committed by GitHub
commit 7884549637
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 5 deletions

View file

@ -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