HomeImagickImagickDrawImagickPixelImagick Pixel IteratorImagick KernelTutorial Source codeReport an issue
Category
Example

Identify image

← houghLineImage   identifyFormat →
Identifies an image and returns the attributes. Attributes include the image width, height, size, and others.
imageName : /var/app/public/images/fnord.png
mimetype : image/png
format : PNG (Portable Network Graphics)
units : Undefined
colorSpace : sRGB
type : TrueColorAlpha
compression : Zip
fileSize : 28630B
geometry : array ( 'width' => 175, 'height' => 65, )
resolution : array ( 'x' => 0.0, 'y' => 0.0, )
signature : 61781193868b400fe3cafaa47d731a2c103717354c9fd1f04a96f3a16a4116df
rawOutput : Image: Filename: /var/app/public/images/fnord.png Format: PNG (Portable Network Graphics) Mime type: image/png Class: DirectClass Geometry: 175x65+0+0 Units: Undefined Colorspace: sRGB Type: TrueColorAlpha Base type: Undefined Endianness: Undefined Depth: 16-bit Channel depth: red: 15-bit green: 15-bit blue: 15-bit alpha: 15-bit Channel statistics: Pixels: 11375 Red: min: 0 (0) max: 53619 (0.818173) mean: 5764.61 (0.0879623) standard deviation: 11888.9 (0.181412) kurtosis: 3.3759 skewness: 2.10817 entropy: 0.358188 Green: min: 0 (0) max: 34951 (0.533318) mean: 2058.8 (0.0314152) standard deviation: 5059.51 (0.0772032) kurtosis: 9.20994 skewness: 3.02878 entropy: 0.345405 Blue: min: 0 (0) max: 46773 (0.71371) mean: 6324.23 (0.0965016) standard deviation: 11356.9 (0.173295) kurtosis: 1.28724 skewness: 1.60669 entropy: 0.361461 Alpha: min: 0 (0) max: 65535 (1) mean: 18667.3 (0.284844) standard deviation: 26493.1 (0.404258) kurtosis: -0.833444 skewness: 0.968756 entropy: 0.420856 Image statistics: Overall: min: 0 (0) max: 65535 (1) mean: 8203.73 (0.125181) standard deviation: 13699.6 (0.209042) kurtosis: 4.36545 skewness: 2.294 entropy: 0.371477 Alpha: none #0000000000000000 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) Background color: white Border color: srgba(223,223,223,1) Matte color: grey74 Transparent color: none Interlace: None Intensity: Undefined Compose: Over Page geometry: 175x65+0+0 Dispose: Undefined Iterations: 0 Compression: Zip Orientation: Undefined Properties: date:create: 2022-08-31T12:16:03+00:00 date:modify: 2022-08-13T14:52:09+00:00 png:IHDR.bit-depth-orig: 16 png:IHDR.bit_depth: 16 png:IHDR.color-type-orig: 6 png:IHDR.color_type: 6 (RGBA) png:IHDR.interlace_method: 0 (Not interlaced) png:IHDR.width,height: 175, 65 png:sRGB: intent=0 (Perceptual Intent) signature: 61781193868b400fe3cafaa47d731a2c103717354c9fd1f04a96f3a16a4116df Tainted: False Filesize: 28630B Number pixels: 11375 Pixels per second: 8.51099MB User time: 0.010u Elapsed time: 0:01.001 Version: ImageMagick 6.9.12-27 Q16 x86_64 2021-10-24 https://imagemagick.org