John Cupitt
John Cupitt
I had a quick go: https://github.com/jcupitt/docker-builds/blob/master/lua-vips-ubuntu21.04/Dockerfile But canonical seem to be having some DNS problems so I can't test it, unfortunately. I might try again later.
Oh, just me being dumb, 21.04 is not an LTS, so it's out of support. Assuming you meant 20.04 I made this: https://github.com/jcupitt/docker-builds/blob/master/lua-vips-ubuntu20.04/Dockerfile It seems to work, I see: ```...
Hi @hzm199822, could you post a sample image showing what you want?
For example, this: ```lua #!/usr/bin/luajit local vips = require "vips" local im = vips.Image.new_from_file(arg[1], {access = "sequential"}) -- make a transparent square ... just RGBA all 0 (black) local square...
The square in the lion only looks white because the page background is white. Try opening the image in a new tab. You can overlay complex shapes with `composite`. You...
Composite example: ```lua #!/usr/bin/luajit vips = require 'vips' local image = vips.Image.new_from_file(arg[1], {access = "sequential"}) local overlay = vips.Image.new_from_file(arg[2], {access = "sequential"}) -- composite the overlay at 50, 20 using...
You can apply masks if you want more complex shapes. Post a set of sample images and I'll have a go.
Use the github website and drag images into the text box.
You need to wait for the upload to finish before pressing `Comment`.
Ah, like a jigsaw, I wondered. Yes, it should be easy. Do you have that shape as a PNG?