John Cupitt
John Cupitt
I mean, do you have a PNG for the jigsaw piece? It would save me drawing it.
I found this sample:  Example code: ```lua #!/usr/bin/luajit vips = require 'vips' local image = vips.Image.new_from_file(arg[1], {access = "sequential"}) local mask = vips.Image.new_from_file(arg[2], {access = "sequential"}) -- the position...
Sorry, I still don't understand what you want to do. Are you trying to hide or remove the watermark?
Hello @zhouming, it sound like there might be a callback leak somewhere. Could you post a program that has this problem?
Thanks for the info! Thinking again, it looks like there is a GC being triggered here: https://github.com/jcupitt/lua-vips/blob/master/src/vips/voperation.lua#L127 This is a call from LuaJIT into C, then from C back into...
Oh that's a shame. That looks like a different stack trace. Do you see crashes at random positions in your code? Sorry, without a small test case, this will be...
Hello, sorry, I don't know anything about OpenResty. Is it much like node? node-vips is asynchronous, so it should be possible: https://github.com/jcupitt/node-vips All you do is start a thread to...
Would this work? https://github.com/torch/threads It looks like you can fire off background threads and get a callback on the main thread when the background task completes.
I'd guess it's being inited in parallel, or perhaps not shut down properly, then inited again. What are you doing to cause the error?
Thinking a bit more, I'd guess you are running `require "vips"` in a worker. You need to init vips just once from the main thread, then pass the `vips` handle...