mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-07 21:48:13 -08:00
Adding a test, verifying both ways of enabling SmartCrop work
This commit is contained in:
parent
855de7ca55
commit
33bf9bdff6
4 changed files with 63 additions and 13 deletions
|
|
@ -249,7 +249,7 @@ func extractOrEmbedImage(image *C.VipsImage, o Options) (*C.VipsImage, error) {
|
|||
inHeight := int(image.Ysize)
|
||||
|
||||
switch {
|
||||
case o.Gravity == GravitySmart:
|
||||
case o.Gravity == GravitySmart, o.SmartCrop:
|
||||
image, err = vipsSmartCrop(image, o.Width, o.Height)
|
||||
break
|
||||
case o.Crop:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue