<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.image.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.gd-info.php',
    1 => 'gd_info',
    2 => 'Retrieve information about the currently installed GD library',
  ),
  'up' => 
  array (
    0 => 'ref.image.php',
    1 => 'GD and Image Funzioni',
  ),
  'prev' => 
  array (
    0 => 'ref.image.php',
    1 => 'GD and Image Funzioni',
  ),
  'next' => 
  array (
    0 => 'function.getimagesize.php',
    1 => 'getimagesize',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/image/functions/gd-info.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.gd-info" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">gd_info</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.3.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">gd_info</span> &mdash; <span class="dc-title">Retrieve information about the currently installed GD library</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.gd-info-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>gd_info</strong></span>(): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>

  <p class="para rdfs-comment">
   Gets information about the version and capabilities of the installed GD
   library.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.gd-info-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <p class="para">Questa funzione non contiene parametri.</p>
 </div>

 
 <div class="refsect1 returnvalues" id="refsect1-function.gd-info-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="para">
   Returns an associative array.
  </p>
  <p class="para">
   <table class="doctable table">
    <caption><strong>Elements of array returned by <span class="function"><strong>gd_info()</strong></span></strong></caption>
    
     <thead>
      <tr>
       <th>Attribute</th>
       <th>Meaning</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>GD Version</td>
       <td><span class="type"><a href="language.types.string.php" class="type string">string</a></span> value describing the installed
        <code class="literal">libgd</code> version.</td>
      </tr>

      <tr>
       <td>FreeType Support</td>
       <td><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> value.  <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>
        if FreeType Support is installed.</td>
      </tr>

      <tr>
       <td>FreeType Linkage</td>
       <td><span class="type"><a href="language.types.string.php" class="type string">string</a></span> value describing the way in which
        FreeType was linked. Expected values are: &#039;with freetype&#039;,
        &#039;with TTF library&#039;, and &#039;with unknown library&#039;.  This element will
        only be defined if <code class="literal">FreeType Support</code> evaluated to
        <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>.</td>
      </tr>

      <tr>
       <td>GIF Read Support</td>
       <td><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> value.  <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>
        if support for <em>reading</em> <code class="literal">GIF</code>
        images is included.</td>
      </tr>

      <tr>
       <td>GIF Create Support</td>
       <td><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> value.  <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>
        if support for <em>creating</em> <code class="literal">GIF</code>
        images is included.</td>
      </tr>

      <tr>
       <td>JPEG Support</td>
       <td><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> value.  <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>
        if <code class="literal">JPEG</code> support is included.</td>
      </tr>

      <tr>
       <td>PNG Support</td>
       <td><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> value.  <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>
        if <code class="literal">PNG</code> support is included.</td>
      </tr>

      <tr>
       <td>WBMP Support</td>
       <td><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> value.  <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>
        if <code class="literal">WBMP</code> support is included.</td>
      </tr>

      <tr>
       <td>XBM Support</td>
       <td><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> value.  <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>
        if <code class="literal">XBM</code> support is included.</td>
      </tr>

      <tr>
       <td>WebP Support</td>
       <td><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> value.  <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>
        if <code class="literal">WebP</code> support is included.</td>
      </tr>

      <tr>
       <td>AVIF Support</td>
       <td><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> value.  <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>
        if <code class="literal">AVIF</code> support is included.
        Available as of PHP 8.1.0.</td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.gd-info-examples">
  <h3 class="title">Esempi</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Example #1 Using <span class="function"><strong>gd_info()</strong></span></strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">gd_info</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>Il precedente esempio visualizzerà
qualcosa simile a:</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">array(10) {
  [&quot;GD Version&quot;]=&gt;
  string(24) &quot;bundled (2.1.0 compatible)&quot;
  [&quot;FreeType Support&quot;]=&gt;
  bool(false)
  [&quot;GIF Read Support&quot;]=&gt;
  bool(true)
  [&quot;GIF Create Support&quot;]=&gt;
  bool(false)
  [&quot;JPEG Support&quot;]=&gt;
  bool(false)
  [&quot;PNG Support&quot;]=&gt;
  bool(true)
  [&quot;WBMP Support&quot;]=&gt;
  bool(true)
  [&quot;XBM Support&quot;]=&gt;
  bool(false)
  [&quot;WebP Support&quot;]=&gt;
  bool(false)
  [&quot;AVIF Support&quot;]=&gt;
  bool(false)
}</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.gd-info-seealso">
  <h3 class="title">Vedere anche:</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.imagepng.php" class="function" rel="rdfs-seeAlso">imagepng()</a> - Output a PNG image to either the browser or a file</span></li>
   <li><span class="function"><a href="function.imagejpeg.php" class="function" rel="rdfs-seeAlso">imagejpeg()</a> - Invia l'immagine al browser o in un file</span></li>
   <li><span class="function"><a href="function.imagegif.php" class="function" rel="rdfs-seeAlso">imagegif()</a> - Invia l'immagine al browser o in un file</span></li>
   <li><span class="function"><a href="function.imagewbmp.php" class="function" rel="rdfs-seeAlso">imagewbmp()</a> - Invia l'immagine al browser o in un file</span></li>
   <li><span class="function"><a href="function.imagewebp.php" class="function" rel="rdfs-seeAlso">imagewebp()</a> - Output a WebP image to browser or file</span></li>
   <li><span class="function"><a href="function.imageavif.php" class="function" rel="rdfs-seeAlso">imageavif()</a> - Invia l'immagine al browser o in un file</span></li>
   <li><span class="function"><a href="function.imagetypes.php" class="function" rel="rdfs-seeAlso">imagetypes()</a> - Return the image types supported by this PHP build</span></li>
  </ul>
 </div>

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