mirror of
https://github.com/php/doc-fr.git
synced 2026-03-24 07:02:06 +01:00
163 lines
4.6 KiB
XML
163 lines
4.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- EN-Revision: 9ba738103b63ee4f129dadf3f8585568609e63b7 Maintainer: yannick Status: ready -->
|
|
<!-- Reviewed: yes -->
|
|
|
|
<chapter xml:id="image.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
&reftitle.setup;
|
|
|
|
<!-- {{{ Requirements -->
|
|
<section xml:id="image.requirements">
|
|
&reftitle.required;
|
|
<para>
|
|
En disposant de la bibliothèque <acronym>GD</acronym> (disponible
|
|
à <link xlink:href="&url.gd;">&url.gd;</link>) il sera possible d'aussi créer
|
|
et manipuler des images.
|
|
</para>
|
|
<para>
|
|
Les formats des images qu'il sera possible de manipuler dépendent de la
|
|
version de <acronym>GD</acronym> que l'on installera, et de toutes
|
|
autres bibliothèques dont <acronym>GD</acronym> a besoin pour traiter
|
|
ces images.
|
|
<note>
|
|
<simpara>
|
|
libgd-2.1.0 ou supérieur est requis. Alternativement,
|
|
utiliser la bibliothèque <acronym>GD</acronym> fournie avec PHP.
|
|
</simpara>
|
|
</note>
|
|
<note>
|
|
<simpara>
|
|
La bibliothèque <acronym>GD</acronym> requiert zlib >= 1.2.0.4.
|
|
</simpara>
|
|
</note>
|
|
</para>
|
|
<para>
|
|
Il est aussi possible d'améliorer <acronym>GD</acronym> en lui ajoutant des formats
|
|
d'images supplémentaires.
|
|
<table>
|
|
<title>Formats d'images supportés</title>
|
|
<tgroup cols="3">
|
|
<thead>
|
|
<row>
|
|
<entry>Format d'image</entry>
|
|
<entry>Bibliothèque à télécharger</entry>
|
|
<entry>Notes</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry><literal>gif</literal></entry>
|
|
<entry></entry>
|
|
<entry></entry>
|
|
</row>
|
|
<row>
|
|
<entry><literal>avif</literal></entry>
|
|
<entry></entry>
|
|
<entry></entry>
|
|
</row>
|
|
<row>
|
|
<entry><literal>jpeg</literal></entry>
|
|
<entry><link xlink:href="&url.jpeg;">&url.jpeg;</link></entry>
|
|
<entry>
|
|
Lors de la compilation de la bibliothèque jpeg (avant celle de PHP),
|
|
il faut utiliser l'option de configuration <option role="configure">--enable-shared</option>.
|
|
Dans le cas contraire, une erreur sera affichée disant que
|
|
<literal>libjpeg.(a|so) not found</literal> lorsqu'on tentera de configurer PHP
|
|
avant de compiler.
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry><literal>png</literal></entry>
|
|
<entry><link xlink:href="&url.libpng;">&url.libpng;</link></entry>
|
|
<entry>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry><literal>xpm</literal></entry>
|
|
<entry><link xlink:href="&url.libxpm;">&url.libxpm;</link></entry>
|
|
<entry>
|
|
Il est probable que l'on ait déjà cette bibliothèque disponible si
|
|
le système dispose d'un environnement X.
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry><literal>webp</literal></entry>
|
|
<entry></entry>
|
|
<entry></entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
</para>
|
|
|
|
<para>
|
|
Il est possible de vouloir étendre <acronym>GD</acronym> pour traiter
|
|
différentes polices de caractères.
|
|
La bibliothèque <link xlink:href="&url.freetype;">FreeType 2</link> est supportée.
|
|
</para>
|
|
</section>
|
|
<!-- }}} -->
|
|
|
|
<!-- {{{ Installation -->
|
|
&reference.image.configure;
|
|
<!-- }}} -->
|
|
|
|
<!-- {{{ Configuration -->
|
|
&reference.image.ini;
|
|
<!-- }}} -->
|
|
|
|
<!-- {{{ Resources -->
|
|
<section xml:id="image.resources">
|
|
&reftitle.resources;
|
|
<para>
|
|
Cette extension définit les types de ressources suivantes :
|
|
<table>
|
|
<title>Liste des ressources dans GD</title>
|
|
<tgroup cols="3">
|
|
<thead>
|
|
<row>
|
|
<entry>Nom</entry>
|
|
<entry>Description</entry>
|
|
<entry>Notes</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry><literal>gd</literal></entry>
|
|
<entry>Ressource Image, utilisée par des fonctions comme <function>imagecreatefrompng</function></entry>
|
|
<entry>Antérieur à PHP 8.0.0</entry>
|
|
</row>
|
|
<row>
|
|
<entry><literal>gd font</literal></entry>
|
|
<entry>Ressource Police créée en interne par <function>imageloadfont</function></entry>
|
|
<entry>Antérieur à PHP 8.1.0</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
</para>
|
|
</section>
|
|
<!-- }}} -->
|
|
|
|
</chapter>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|