Code: Select all
$ImageMagick = ObjCreate("ImageMagickObject.MagickImage.1")
$test = $ImageMagick.identify("-verbose", "10499370_267852580088660_4278776929494865645_o_2.jpg")
In a comand line i use identify with -verbose and get this:Image: 10499370_267852580088660_4278776929494865645_o_2.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
Mime type: image/jpeg
Class: DirectClass
Geometry: 2048x1361+0+0
Units: Undefined
Colorspace: sRGB
Type: Bilevel
Base type: Undefined
Endianess: Undefined
Depth: 8/1-bit
Channel depth:
Red: 1-bit
Green: 1-bit
Blue: 1-bit
Channel statistics:
Pixels: 2787328
Red:
min: 0 (0)
max: 0 (0)
mean: 0 (0)
standard deviation: 0 (0)
kurtosis: -3
skewness: 0
entropy: 4.82164e-005
Green:
min: 0 (0)
max: 0 (0)
mean: 0 (0)
standard deviation: 0 (0)
kurtosis: -3
skewness: 0
entropy: 4.82164e-005
Blue:
min: 0 (0)
max: 0 (0)
mean: 0 (0)
standard deviation: 0 (0)
kurtosis: -3
skewness: 0
entropy: 4.82164e-005
Image statistics:
Overall:
min: 0 (0)
max: 0 (0)
mean: 0 (0)
standard deviation: 0 (0)
kurtosis: -3
skewness: 0
entropy: 4.82164e-005
Colors: 1
Histogram:
2787328: ( 0, 0, 0) #000000 black
Rendering intent: Perceptual
Gamma: 0.454545
Chromaticity:
red primary: (0.64,0.33)
green primary: (0.3,0.6)
blue primary: (0.15,0.06)
white point: (0.3127,0.329)
Matte color: grey74
Background color: white
Border color: srgb(223,223,223)
Transparent color: none
Interlace: JPEG
Intensity: Undefined
Compose: Over
Page geometry: 2048x1361+0+0
Dispose: Undefined
Iterations: 0
Compression: JPEG
Quality: 77
Orientation: Undefined
Properties:
date:create: 2014-11-22T12:02:42+00:00
date:modify: 2014-11-22T12:02:44+00:00
iccCopyright International Color Consortium, 2009
icc:description: sRGB IEC61966-2-1 black scaled
icc:model: IEC 61966-2-1 Default RGB Colour Space - sRGB
jpeg:colorspace: 2
jpeg:sampling-factor: 2x2,1x1,1x1
signature: 56282a9357a6f3afcd4a94efde10228995c321e847c3eed309efd9ad67d33016
Profiles:
Profile-8bim: 38 bytes
Profile-icc: 3048 bytes
Profile-iptc: 25 bytes
Original Transmission Reference[2,103]: V22VZPpPdFfQbLXoVnbu
Artifacts:
verbose: true
Tainted: False
Filesize: 331954B
Number pixels: 2.78733M
Pixels per second: 259.898MP
User time: 0.000u
Elapsed time: 0:01.010
Version: ImageMagick 7.0.8-50 Q16 x64 2019-06-24 http://www.imagemagick.org
How i can get this lines through COM to use in autoit? i can parse the comand line with autoit, but COM is a lot fasteridentify -verbose 10499370_267852580088660_4278776929494865645_o_2.jpg
Image: 10499370_267852580088660_4278776929494865645_o_2.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
Mime type: image/jpeg
Class: DirectClass
Geometry: 2048x1361+0+0
Units: Undefined
Colorspace: sRGB
Type: Bilevel
Base type: Undefined
Endianess: Undefined
Depth: 8/1-bit
Channel depth:
Red: 1-bit
Green: 1-bit
Blue: 1-bit
Channel statistics:
Pixels: 2787328
Red:
min: 0 (0)
max: 0 (0)
mean: 0 (0)
standard deviation: 0 (0)
kurtosis: -3
skewness: 0
entropy: 4.82164e-005
Green:
min: 0 (0)
max: 0 (0)
mean: 0 (0)
standard deviation: 0 (0)
kurtosis: -3
skewness: 0
entropy: 4.82164e-005
Blue:
min: 0 (0)
max: 0 (0)
mean: 0 (0)
standard deviation: 0 (0)
kurtosis: -3
skewness: 0
entropy: 4.82164e-005
Image statistics:
Overall:
min: 0 (0)
max: 0 (0)
mean: 0 (0)
standard deviation: 0 (0)
kurtosis: -3
skewness: 0
entropy: 4.82164e-005
Colors: 1
Histogram:
2787328: ( 0, 0, 0) #000000 black
Rendering intent: Perceptual
Gamma: 0.454545
Chromaticity:
red primary: (0.64,0.33)
green primary: (0.3,0.6)
blue primary: (0.15,0.06)
white point: (0.3127,0.329)
Matte color: grey74
Background color: white
Border color: srgb(223,223,223)
Transparent color: none
Interlace: JPEG
Intensity: Undefined
Compose: Over
Page geometry: 2048x1361+0+0
Dispose: Undefined
Iterations: 0
Compression: JPEG
Quality: 77
Orientation: Undefined
Properties:
date:create: 2014-11-22T12:02:42+00:00
date:modify: 2014-11-22T12:02:44+00:00
iccCopyright International Color Consortium, 2009
icc:description: sRGB IEC61966-2-1 black scaled
icc:model: IEC 61966-2-1 Default RGB Colour Space - sRGB
jpeg:colorspace: 2
jpeg:sampling-factor: 2x2,1x1,1x1
signature: 56282a9357a6f3afcd4a94efde10228995c321e847c3eed309efd9ad67d33016
Profiles:
Profile-8bim: 38 bytes
Profile-icc: 3048 bytes
Profile-iptc: 25 bytes
Original Transmission Reference[2,103]: V22VZPpPdFfQbLXoVnbu
Artifacts:
verbose: true
Tainted: False
Filesize: 331954B
Number pixels: 2.78733M
Pixels per second: 280.964MP
User time: 0.016u
Elapsed time: 0:01.009
Version: ImageMagick 7.0.8-50 Q16 x64 2019-06-24 http://www.imagemagick.org
identify: Corrupt JPEG data: premature end of data segment `Z:\Pruebas\10499370_267852580088660_4278776929494865645_o_2.jpg' @ warning/jpeg.c/JPEGWarningHandler/396.
identify: Invalid JPEG file structure: two SOI markers `Z:\Pruebas\10499370_267852580088660_4278776929494865645_o_2.jpg' @ error/jpeg.c/JPEGErrorHandler/340.
Thanksidentify: Corrupt JPEG data: premature end of data segment `Z:\Pruebas\10499370_267852580088660_4278776929494865645_o_2.jpg' @ warning/jpeg.c/JPEGWarningHandler/396.
identify: Invalid JPEG file structure: two SOI markers `Z:\Pruebas\10499370_267852580088660_4278776929494865645_o_2.jpg' @ error/jpeg.c/JPEGErrorHandler/340.
![Very Happy :D](./images/smilies/icon_biggrin.gif)