mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-07 21:48:13 -08:00
Make it compatible with the latest vips. Fixes #255
This commit is contained in:
parent
4eb8362deb
commit
98902da9c7
3 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
vips_version_minimum=8.4.2
|
||||
vips_version_latest_major_minor=8.5
|
||||
vips_version_latest_major_minor=8.7
|
||||
vips_version_latest_patch=1
|
||||
vips_version_full="$vips_version_latest_major_minor.$vips_version_latest_patch"
|
||||
|
||||
|
|
|
|||
2
vips.go
2
vips.go
|
|
@ -233,7 +233,7 @@ func vipsRotate(image *C.VipsImage, angle Angle) (*C.VipsImage, error) {
|
|||
var out *C.VipsImage
|
||||
defer C.g_object_unref(C.gpointer(image))
|
||||
|
||||
err := C.vips_rotate(image, &out, C.int(angle))
|
||||
err := C.vips_rotate_bimg(image, &out, C.int(angle))
|
||||
if err != 0 {
|
||||
return nil, catchVipsError()
|
||||
}
|
||||
|
|
|
|||
2
vips.h
2
vips.h
|
|
@ -177,7 +177,7 @@ vips_type_find_save_bridge(int t) {
|
|||
}
|
||||
|
||||
int
|
||||
vips_rotate(VipsImage *in, VipsImage **out, int angle) {
|
||||
vips_rotate_bimg(VipsImage *in, VipsImage **out, int angle) {
|
||||
int rotate = VIPS_ANGLE_D0;
|
||||
|
||||
angle %= 360;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue