How to execute composite command using ImageMagickObject

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
sahilsaxena
Posts: 1
Joined: 2014-04-20T00:53:58-07:00
Authentication code: 6789

How to execute composite command using ImageMagickObject

Post 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
manmanda
Posts: 17
Joined: 2014-04-16T13:34:38-07:00
Authentication code: 6789

Re: How to execute composite command using ImageMagickObjec

Post by manmanda »

You can use below code for composite

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