<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Identifies an image and fetches attributes</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="imagick.haspreviousimage.html">Imagick::hasPreviousImage</a></div> <div class="next" style="text-align: right; float: right;"><a href="imagick.implodeimage.html">Imagick::implodeImage</a></div> <div class="up"><a href="class.imagick.html">Imagick</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="imagick.identifyimage" class="refentry"> <div class="refnamediv"> <h1 class="refname">Imagick::identifyImage</h1> <p class="verinfo">(PECL imagick 2.0.0)</p><p class="refpurpose"><span class="refname">Imagick::identifyImage</span> — <span class="dc-title">Identifies an image and fetches attributes</span></p> </div> <div class="refsect1 description" id="refsect1-imagick.identifyimage-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">array</span> <span class="methodname"><strong>Imagick::identifyImage</strong></span> ([ <span class="methodparam"><span class="type">bool</span> <code class="parameter">$appendRawOutput</code><span class="initializer"> = false</span></span> ] )</div> <p class="para rdfs-comment"> Identifies an image and returns the attributes. Attributes include the image width, height, size, and others. </p> </div> <div class="refsect1 parameters" id="refsect1-imagick.identifyimage-parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><em><code class="parameter">appendRawOutput</code></em></span> <dd> <p class="para"> </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-imagick.identifyimage-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Identifies an image and returns the attributes. Attributes include the image width, height, size, and others. </p> </div> <div class="refsect1 examples" id="refsect1-imagick.identifyimage-examples"> <p class="para"> <div class="example" id="example-3326"> <p><strong>Example #1 Example Result Format</strong></p> <div class="example-contents screen"> <div class="examplescode"><pre class="examplescode">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 )</pre> </div> </div> </div> </p> </div> <div class="refsect1 errors" id="refsect1-imagick.identifyimage-errors"> <h3 class="title">Errors/Exceptions</h3> <p class="para"> Throws ImagickException on error. </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="imagick.haspreviousimage.html">Imagick::hasPreviousImage</a></div> <div class="next" style="text-align: right; float: right;"><a href="imagick.implodeimage.html">Imagick::implodeImage</a></div> <div class="up"><a href="class.imagick.html">Imagick</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>