[Error - JAVA] - vips_crop calls using JNA result in "no property named `'" #4289
Replies: 1 comment 2 replies
-
Hello @SnowdingerrDev, You need a NULL at the end of the param list to show there are no extra optional arguments. However ... I think this is not a good way to use libvips from Java. The libvips C interface is supposed to be compact and simple for humans to write, but it's terrible for language bindings due to varargs and the lack of type safety. libvips has two C APIs. The We had a discussion like this one a few months ago and @lopcode went off and made a nice Java binding of the whole of libvips using FFM and the GObject interface: The binding is here: https://github.com/lopcode/vips-ffm I'd have a look at that, it should do what you want (I think). |
Beta Was this translation helpful? Give feedback.
-
Hello,
I've been looking into how to integrate libvips in my java application,
but I've been encountering issues with few JNA calls.
and while attempting to play with the crop method to only pick single parts of an image
Describe the issue
using this as a jna library
and then using it as debug in my Libvips training
results in this error being thrown in the console
->
Error cropping image: extract_area: no property named
�'`I've been digging through the libvips documentation quite a lot, but I've been struggling to find a reliable solution."
Environment
I've also attempted to use this but still failed with the same message
Do anyone knows a fix ?
thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions