HomeImagickImagickDrawImagickPixelImagick Pixel IteratorImagick KernelDevelopmentTutorial 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 : 9784c1a058a86e6654c086a15b0d5b8e922befa635e2e65e6b040c35132e6a20
rawOutput : Image: Filename: /var/app/public/images/fnord.png Permissions: rw-r--r-- 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: 16-bit Green: 16-bit Blue: 16-bit Alpha: 16-bit Channel statistics: Pixels: 11375 Red: min: 0 (0) max: 53619 (0.818173) mean: 5764.61 (0.0879623) median: 0 (0) 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) median: 0 (0) 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) median: 0 (0) 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) median: 0 (0) 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) median: 0 (0) 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) Matte color: grey74 Background color: white Border color: srgb(223,223,223) Transparent color: black Interlace: None Intensity: Undefined Compose: Over Page geometry: 175x65+0+0 Dispose: Undefined Iterations: 0 Compression: Zip Orientation: Undefined Properties: date:create: 2023-03-02T20:15:27+00:00 date:modify: 2022-08-13T14:52:09+00:00 date:timestamp: 2024-04-20T11:09:25+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 signature: 9784c1a058a86e6654c086a15b0d5b8e922befa635e2e65e6b040c35132e6a20 Tainted: False Filesize: 28630B Number pixels: 11375 Pixel cache type: Memory Pixels per second: 8.56765MP User time: 0.000u Elapsed time: 0:01.001 Version: ImageMagick 7.1.0-57 Q16-HDRI x86_64 d68553b17:20221230 https://imagemagick.org