I tried following command and it worked fine in Windows Command Processor:
Code: Select all
convert -metric PHASH C:\A.bmp C:\B.bmp NULL:
But when I use following VBScript and execute it in WSH, COM interface throws the error unrecognized option "-metric PHASH".
I have ImageMagick 64-bit 7.0.2-9 Q16 installed in my 64-bit system.
This is the VBScript:
Code: Select all
Dim IM: Set IM = WScript.CreateObject("ImageMagickObject.MagickImage")
Dim Result: Result = IM.Compare("-metric PHASH", "C:\A.bmp", "C:\B.bmp", "NULL:")
WScript.Echo "PHASH Comparison returned " + CStr(Result)
Thanks in advance.