leafo / magick

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

How to achieve a custom effect? #46

Closed rahulpatel033 closed 7 years ago

rahulpatel033 commented 7 years ago

convert one.png two.png three.png -compose displace -composite cylinderCMD.png Hello @leafo I'm trying to convert this command into C and later on I want to use it in lua. For that I used below set of methods. Could you help me to do this? I wouldn't have to posted a C related question over here but my ultimate goal is to use it in lua so I did. And for detail information you can check this link.

MagickCompositeImage(wand, wand2, DisplaceCompositeOp,MagickFalse, 0, 0); MagickCompositeImage(wand, wand3, DisplaceCompositeOp,MagickFalse, 0, 0); MagickWriteImage(wand,"final.png");