Page 1 of 1

How to execute composite command using ImageMagickObject

Posted: 2014-04-20T01:02:36-07:00
by sahilsaxena
Hello,
Can anybody help me how to execute below command using ImageMagickObject in vbscript
composite image1.jpg image2.jpg -compose difference compare.jpg

for eg. Set img = CreateObject("ImageMagickObject.MagickImage.1")
msgs = img.Composite()
What will the parameter in above Composite method?

Thanks in advance

Re: How to execute composite command using ImageMagickObjec

Posted: 2014-04-20T05:06:53-07:00
by manmanda
You can use below code for composite

msgs = img.Composite("image1.jpg", "image2.jpg", "-compose", "difference", "compare.jpg")