leafo / magick

Lua bindings to ImageMagick for LuaJIT using FFI
401 stars 79 forks source link

img:composite(source, x, y, compose) no vertical displacement #64

Open coliflor opened 3 years ago

coliflor commented 3 years ago

` local magick = require "magick"

local bg = magick.load_image("bg.png") local compose = magick.load_image("h1.gif") bg:composite(compose, 1000, 0, "XorCompositeOp") compose:destroy()

bg:write("bg.png") bg:destroy() ` The image gets drawn but in the incorrect position, it should be (1000, 0) but the result is (0, 0) with magick.gmwand the program works as intended