Identify returns BLANK info - 2008 R2 COM+
Posted: 2013-08-27T18:05:10-07:00
I'm running ImageMagick from a vbscript on 2008 R2 and just calling the COM+ object. I can use the Identify function with the "-format" option to return height and width of an image just fine. My problem is when I'm trying to get basic info on an image by just using the Identify function, it returns blank data. Here is my code:
Set img = CreateObject("ImageMagickObject.MagickImage")
strInfo = img.Identify ("C:\image1.jpg")
msgbox strInfo
I get no errors but it returns blank (nothing). What am I doing wrong? I've tried using img.Identify ("-identify", "C:\image1.jpg") and that doesn't work either. It works just fine if I execute identify.exe from the command prompt with "identify.exe C:\image1.jpg". So I'm at a loss as to why the COM+ object doesn't return any info with Identify?
Set img = CreateObject("ImageMagickObject.MagickImage")
strInfo = img.Identify ("C:\image1.jpg")
msgbox strInfo
I get no errors but it returns blank (nothing). What am I doing wrong? I've tried using img.Identify ("-identify", "C:\image1.jpg") and that doesn't work either. It works just fine if I execute identify.exe from the command prompt with "identify.exe C:\image1.jpg". So I'm at a loss as to why the COM+ object doesn't return any info with Identify?