Skip to content

Commit

Permalink
fix: vipsReduce
Browse files Browse the repository at this point in the history
  • Loading branch information
prOOrc committed Apr 22, 2024
1 parent 39dc5bd commit e8693c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vips.go
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ func vipsReduce(input *C.VipsImage, xshrink float64, yshrink float64, kernel Ker
var image *C.VipsImage
defer C.g_object_unref(C.gpointer(input))

err := C.vips_reduce_bridge(input, &image, C.double(xshrink), C.double(yshrink), kernel)
err := C.vips_reduce_bridge(input, &image, C.double(xshrink), C.double(yshrink), C.int(kernel))
if err != 0 {
return nil, catchVipsError()
}
Expand Down

0 comments on commit e8693c9

Please sign in to comment.