I have ImageMagick and GraphicsMagick both installed. I can use both freely from the command line because they have different command namespaces (all of the ImageMagick commands are parameters to the gm
GraphicsMagick command). From the command line:
convert ...
uses ImageMagickgm convert ...
uses GraphicsMagick
That all works fine. However, it appears that both programs' COM objects are invoked identically:
Set img = CreateObject("ImageMagickObject.MagickImage.1")
creates an ImageMagick objectSet img = CreateObject("ImageMagickObject.MagickImage.1")
creates a GraphicsMagick object... hard to believe, but this is straight from the GraphicsMagickSimpleTest.vbs
sample script
How do I specify which COM object I want to use? Or am I out of luck?
EDIT: I just compared the sample VBS scripts that are included with ImageMagick and GraphicsMagick, both named SimpleTest.vbs. Turns out they have more in common than the filename. They are nearly identical files. This in itself may not mean much (after all, GM was forked from IM), but I'm starting to wonder whether GraphicsMagick really has a COM object at all or whether they are just including ImageMagick's COM object in their Windows binary.