(width, height int)
| 667 | } |
| 668 | |
| 669 | func (img *Image) SmartCrop(width, height int) error { |
| 670 | var tmp *C.VipsImage |
| 671 | |
| 672 | if C.vips_smartcrop_go(img.VipsImage, &tmp, C.int(width), C.int(height)) != 0 { |
| 673 | return Error() |
| 674 | } |
| 675 | |
| 676 | img.swapAndUnref(tmp) |
| 677 | return nil |
| 678 | } |
| 679 | |
| 680 | func (img *Image) Trim(threshold float64, smart bool, color color.RGB, equalHor bool, equalVer bool) error { |
| 681 | var tmp *C.VipsImage |
no test coverage detected