This article mainly introduces the solution for ImageMagickObject to obtain image information without returning a value. It is very simple. Just add the format parameter. Friends who need it can refer to it.
Obtaining image information through the identify function of ImageMagickObject is easy to use on the command line, but when placed in a program, the return value cannot be obtained. After practice, it is found that the data can only be returned after formatting using the format parameter.
Copy the code code as follows:SET oImg = Server.CreateObject(ImageMagickObject.MagickImage.1)
vReturn = oImg.identify(-format,%m,%hx%w,c:/sharejs.com/logo.jpg))
The return form is as follows:
JPG,1000x720
The above is the entire content of this article. I hope you all like it.