fix(options): use float64 type in Options.Threshold

This commit is contained in:
Tomas Aparicio 2017-11-23 16:20:12 +01:00
parent 03f7d1fe04
commit 90e5ea5d3a
2 changed files with 3 additions and 3 deletions

View file

@ -504,7 +504,7 @@ func vipsSmartCrop(image *C.VipsImage, width, height int) (*C.VipsImage, error)
return buf, nil
}
func vipsTrim(image *C.VipsImage, background Color, threshold float32) (int, int, int, int, error) {
func vipsTrim(image *C.VipsImage, background Color, threshold float64) (int, int, int, int, error) {
defer C.g_object_unref(C.gpointer(image))
top := C.int(0)