Adding trim operation.

Closes #22

Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
This commit is contained in:
Yoan Blanc 2017-09-12 10:36:34 -04:00
parent b35675c245
commit c1f2667c0f
No known key found for this signature in database
GPG key ID: 6058CF4574298812
8 changed files with 64 additions and 5 deletions

8
vips.h
View file

@ -539,3 +539,11 @@ vips_smartcrop_bridge(VipsImage *in, VipsImage **out, int width, int height) {
return 0;
#endif
}
int vips_find_trim_bridge(VipsImage *in, int *top, int *left, int *width, int *height) {
#if (VIPS_MAJOR_VERSION >= 8 && VIPS_MINOR_VERSION >= 6)
return vips_find_trim(in, top, left, width, height, NULL);
#else
return 0;
#endif
}