in reply to To check color of image using perl script

identify?

C:\monks>identify -verbose ansel_adams.jpg mage: ansel_adams.jpg Format: JPEG (Joint Photographic Experts Group JFIF format) Class: DirectClass Geometry: 224x300+0+0 Resolution: 96x96 Print size: 2.33333x3.125 Units: PixelsPerInch Type: TrueColor Endianess: Undefined Colorspace: sRGB Depth: 8-bit Channel depth: red: 8-bit green: 8-bit blue: 8-bit Channel statistics: Red: min: 0 (0) max: 255 (1) mean: 56.8309 (0.222866) standard deviation: 60.6132 (0.237699) kurtosis: 1.0161 skewness: 1.39185 Green: min: 0 (0) max: 255 (1) mean: 56.6019 (0.221968) standard deviation: 60.5544 (0.237468) kurtosis: 1.03977 skewness: 1.4021 Blue: min: 0 (0) max: 253 (0.992157) mean: 62.2598 (0.244156) standard deviation: 57.6909 (0.226239) kurtosis: 1.32723 skewness: 1.50475 Image statistics: Overall: min: 0 (0) max: 255 (1) mean: 58.5642 (0.229663) standard deviation: 59.6351 (0.233863) kurtosis: 1.12628 skewness: 1.42468 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) Interlace: None Background color: white Border color: srgb(223,223,223) Matte color: grey74 Transparent color: black Compose: Over Page geometry: 224x300+0+0 Dispose: Undefined Iterations: 0 Compression: JPEG Quality: 100 Orientation: Undefined Properties: date:create: 2014-12-18T11:55:44+01:00 date:modify: 2014-12-18T11:55:44+01:00 jpeg:colorspace: 2 jpeg:sampling-factor: 2x2,1x1,1x1 signature: e3f6d4de5b6658ef0f002356f51c6b4ca693faa6ae85d94442a1c8a7 +d3af2263 Artifacts: filename: ansel_adams.jpg verbose: true Tainted: False Filesize: 60KB Number pixels: 67.2K Pixels per second: 4.48MB User time: 0.000u Elapsed time: 0:01.014 Version: ImageMagick 6.7.6-9 2012-05-06 Q16 http://www.imagemagick.or +g

Update: Please see also:

Regards, Karl

«The Crux of the Biscuit is the Apostrophe»