<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/image.setup.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'image.requirements.php',
    1 => 'Pr&eacute;-requis',
    2 => 'Pr&eacute;-requis',
  ),
  'up' => 
  array (
    0 => 'image.setup.php',
    1 => 'Installation/Configuration',
  ),
  'prev' => 
  array (
    0 => 'image.setup.php',
    1 => 'Installation/Configuration',
  ),
  'next' => 
  array (
    0 => 'image.installation.php',
    1 => 'Installation',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/image/setup.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="image.requirements" class="section">
  <h2 class="title">Pré-requis</h2>
  <p class="para">
   En disposant de la bibliothèque <abbr title="Graphics Draw">GD</abbr> (disponible
   à <a href="http://www.libgd.org/" class="link external">&raquo;&nbsp;http://www.libgd.org/</a>) il sera possible d&#039;aussi créer
   et manipuler des images.
  </p>
  <p class="para">
   Les formats des images qu&#039;il sera possible de manipuler dépendent de la
   version de <abbr title="Graphics Draw">GD</abbr> que l&#039;on installera, et de toutes
   autres bibliothèques dont <abbr title="Graphics Draw">GD</abbr> a besoin pour traiter
   ces images.
   <blockquote class="note"><p><strong class="note">Note</strong>: 
    <span class="simpara">
     libgd-2.1.0 ou supérieur est requis. Alternativement, 
     utiliser la bibliothèque <abbr title="Graphics Draw">GD</abbr> fournie avec PHP.
    </span>
   </p></blockquote>
   <blockquote class="note"><p><strong class="note">Note</strong>: 
    <span class="simpara">
     La bibliothèque <abbr title="Graphics Draw">GD</abbr> requiert zlib &gt;= 1.2.0.4.
    </span>
   </p></blockquote>
  </p>
  <p class="para">
   Il est aussi possible d&#039;améliorer <abbr title="Graphics Draw">GD</abbr> en lui ajoutant des formats
   d&#039;images supplémentaires.
   <table class="doctable table">
   <caption><strong>Formats d&#039;images supportés</strong></caption>
    
     <thead>
      <tr>
       <th>Format d&#039;image</th>
       <th>Bibliothèque à télécharger</th>
       <th>Notes</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td><code class="literal">gif</code></td>
       <td class="empty">&nbsp;</td>
       <td class="empty">&nbsp;</td>
      </tr>

      <tr>
       <td><code class="literal">avif</code></td>
       <td class="empty">&nbsp;</td>
       <td class="empty">&nbsp;</td>
      </tr>

      <tr>
       <td><code class="literal">jpeg</code></td>
       <td><a href="http://www.ijg.org/" class="link external">&raquo;&nbsp;http://www.ijg.org/</a></td>
       <td>
        Lors de la compilation de la bibliothèque jpeg (avant celle de PHP),
        il faut utiliser l&#039;option de configuration <strong class="option configure">--enable-shared</strong>.
        Dans le cas contraire, une erreur sera affichée disant que
        <code class="literal">libjpeg.(a|so) not found</code> lorsqu&#039;on tentera de configurer PHP
        avant de compiler.
       </td>
      </tr>

      <tr>
       <td><code class="literal">png</code></td>
       <td><a href="http://www.libpng.org/pub/png/libpng.html" class="link external">&raquo;&nbsp;http://www.libpng.org/pub/png/libpng.html</a></td>
       <td>
       </td>
      </tr>

      <tr>
       <td><code class="literal">xpm</code></td>
       <td><a href="http://www.ibiblio.org/pub/Linux/libs/X/!INDEX.html" class="link external">&raquo;&nbsp;http://www.ibiblio.org/pub/Linux/libs/X/!INDEX.html</a></td>
       <td>
        Il est probable que l&#039;on ait déjà cette bibliothèque disponible si
        le système dispose d&#039;un environnement X.
       </td>
      </tr>

      <tr>
       <td><code class="literal">webp</code></td>
       <td class="empty">&nbsp;</td>
       <td class="empty">&nbsp;</td>
      </tr>

     </tbody>
    
   </table>

  </p>
  
  <p class="para">
   Il est possible de vouloir étendre <abbr title="Graphics Draw">GD</abbr> pour traiter
   différentes polices de caractères.
   La bibliothèque <a href="http://www.freetype.org/" class="link external">&raquo;&nbsp;FreeType 2</a> est supportée.
  </p>
 </div><?php manual_footer($setup); ?>