You could use the WebView and put the code of the library in there.You have to encode the image as base64 to transfer it from Scriptable to the WebView and the resulting image back to Scriptable.
Thanks! I’ve already made it works with webview method. Actually it’s okay to pass the raw jpeg data and parse it with
Data.fromJPEG() method. Base64 is not always needed.
Can you please send me your code? I also have this problem and don’t see how WebView can help me with this task.