array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'es', ), 'this' => array ( 0 => 'imagick.identifyimage.php', 1 => 'Imagick::identifyImage', ), 'up' => array ( 0 => 'class.imagick.php', 1 => 'Imagick', ), 'prev' => array ( 0 => 'imagick.identifyformat.php', 1 => 'Imagick::identifyFormat', ), 'next' => array ( 0 => 'imagick.implodeimage.php', 1 => 'Imagick::implodeImage', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'es', 'path' => 'reference/imagick/imagick/identifyimage.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL imagick 2, PECL imagick 3)
Imagick::identifyImage — Identifica una imagen y obtiene sus atributos
Identifica una imagen y devuelve los atributos. Los atributos incluyen el ancho, alto, tamaño de la imagen, entre otros.
appendRawOutput
Identifica una imagen y devuelve los atributos. Los atributos incluyen el ancho, alto, tamaño de la imagen, entre otros.
Ejemplo #1 Ejemplo de formato resultante
Array ( [imageName] => /some/path/image.jpg [format] => JPEG (Joint Photographic Experts Group JFIF format) [geometry] => Array ( [width] => 90 [height] => 90 ) [type] => TrueColor [colorSpace] => RGB [resolution] => Array ( [x] => 300 [y] => 300 ) [units] => PixelsPerInch [fileSize] => 1.88672kb [compression] => JPEG [signature] => 9a6dc8f604f97d0d691c0286176ddf992e188f0bebba98494b2146ee2d7118da )
Lanza ImagickException en caso de error.