<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.imagick.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'imagick.identifyimage.php',
    1 => 'Imagick::identifyImage',
    2 => 'Identifies an image and fetches attributes',
  ),
  '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' => 'en',
    'path' => 'reference/imagick/imagick/identifyimage.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="imagick.identifyimage" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Imagick::identifyImage</h1>
  <p class="verinfo">(PECL imagick 2, PECL imagick 3)</p><p class="refpurpose"><span class="refname">Imagick::identifyImage</span> &mdash; <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="modifier">public</span> <span class="methodname"><strong>Imagick::identifyImage</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$appendRawOutput</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></span></span>): <span class="type"><a href="language.types.array.php" class="type array">array</a></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><code class="parameter">appendRawOutput</code></dt>
     <dd>
      <p class="para">
         If <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> then the raw output is appended to the array.
      </p>
     </dd>
    
   </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 errors" id="refsect1-imagick.identifyimage-errors">
  <h3 class="title">Errors/Exceptions</h3>
  <p class="para">
   Throws ImagickException on error.
  </p>
 </div>

 
 <div class="refsect1 examples" id="refsect1-imagick.identifyimage-examples">
  <h3 class="title">Examples</h3>
  <p class="para">
   <div class="example" id="example-1">
   <p><strong>Example #1 Example Result Format</strong></p>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">Array
(
    [imageName] =&gt; /some/path/image.jpg
    [format] =&gt; JPEG (Joint Photographic Experts Group JFIF format)
    [geometry] =&gt; Array
        (
            [width] =&gt; 90
            [height] =&gt; 90
        )

    [type] =&gt; TrueColor
    [colorSpace] =&gt; RGB
    [resolution] =&gt; Array
        (
            [x] =&gt; 300
            [y] =&gt; 300
        )

    [units] =&gt; PixelsPerInch
    [fileSize] =&gt; 1.88672kb
    [compression] =&gt; JPEG
    [signature] =&gt; 9a6dc8f604f97d0d691c0286176ddf992e188f0bebba98494b2146ee2d7118da
)</pre>
</div>
   </div>
   </div>
   </p>
 </div>


</div><?php manual_footer($setup); ?>