mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-03-26 01:42:09 +01:00
187 lines
5.0 KiB
XML
187 lines
5.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 8a28a068fae1b82c3907e520a68c23967c682ac6 Maintainer: yannick Status: ready -->
|
|
<!-- Reviewed: yes -->
|
|
<refentry xml:id='function.gd-info' xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>gd_info</refname>
|
|
<refpurpose>Retourne des informations à propos de la bibliothèque GD installée</refpurpose>
|
|
</refnamediv>
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>array</type><methodname>gd_info</methodname>
|
|
<void/>
|
|
</methodsynopsis>
|
|
<para>
|
|
Retourne des informations à propos de la bibliothèque GD installée.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
&no.function.parameters;
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Retourne un tableau associatif.
|
|
</para>
|
|
<para>
|
|
<table>
|
|
<title>Éléments du tableau retournés par <function>gd_info</function></title>
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry>Attribut</entry>
|
|
<entry>Signification</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry>GD Version</entry>
|
|
<entry>&string; décrivant la version de
|
|
<literal>libgd</literal> qui est installée.</entry>
|
|
</row>
|
|
<row>
|
|
<entry>FreeType Support</entry>
|
|
<entry>&boolean;. &true;
|
|
si le support FreeType est installé.</entry>
|
|
</row>
|
|
<row>
|
|
<entry>FreeType Linkage</entry>
|
|
<entry>&string; décrivant la façon avec
|
|
laquelle FreeType a été lié. Les valeurs attendues sont :
|
|
'<literal>with freetype</literal>', '<literal>with TTF library</literal>' et
|
|
'<literal>with unknown library</literal>'. Cet élément ne sera
|
|
défini que si <literal>FreeType Support</literal> est évalué
|
|
&true;.</entry>
|
|
</row>
|
|
<row>
|
|
<entry>GIF Read Support</entry>
|
|
<entry>&boolean;. &true;
|
|
si le support pour la <emphasis>lecture</emphasis> des images
|
|
<literal>GIF</literal> est inclus.</entry>
|
|
</row>
|
|
<row>
|
|
<entry>GIF Create Support</entry>
|
|
<entry>&boolean;. &true;
|
|
si le support pour la <emphasis>création</emphasis> des images
|
|
<literal>GIF</literal> est inclus.</entry>
|
|
</row>
|
|
<row>
|
|
<entry>JPEG Support</entry>
|
|
<entry>&boolean;. &true;
|
|
si le support de <literal>JPEG</literal> est inclus.</entry>
|
|
</row>
|
|
<row>
|
|
<entry>PNG Support</entry>
|
|
<entry>&boolean;. &true;
|
|
si le support de <literal>PNG</literal> est inclus.</entry>
|
|
</row>
|
|
<row>
|
|
<entry>WBMP Support</entry>
|
|
<entry>&boolean;. &true;
|
|
si le support de <literal>WBMP</literal> est inclus.</entry>
|
|
</row>
|
|
<row>
|
|
<entry>XBM Support</entry>
|
|
<entry>&boolean;. &true;
|
|
si le support de <literal>XBM</literal> est inclus.</entry>
|
|
</row>
|
|
<row>
|
|
<entry>WebP Support</entry>
|
|
<entry>Valeur <type>bool</type>. &true;
|
|
si le support <literal>WebP</literal> est inclus.</entry>
|
|
</row>
|
|
<row>
|
|
<entry>AVIF Support</entry>
|
|
<entry>
|
|
Valeur <type>bool</type>. &true; si le support <literal>AVIF</literal> est inclus.
|
|
Disponible à partir de PHP 8.1.0.
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title>Exemple avec <function>gd_info</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
var_dump(gd_info());
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
&example.outputs.similar;
|
|
<screen>
|
|
<![CDATA[
|
|
array(9) {
|
|
["GD Version"]=>
|
|
string(24) "bundled (2.1.0 compatible)"
|
|
["FreeType Support"]=>
|
|
bool(false)
|
|
["GIF Read Support"]=>
|
|
bool(true)
|
|
["GIF Create Support"]=>
|
|
bool(false)
|
|
["JPEG Support"]=>
|
|
bool(false)
|
|
["PNG Support"]=>
|
|
bool(true)
|
|
["WBMP Support"]=>
|
|
bool(true)
|
|
["XBM Support"]=>
|
|
bool(false)
|
|
["WebP Support"]=>
|
|
bool(false)
|
|
["AVIF Support"]=>
|
|
bool(false)
|
|
}
|
|
]]>
|
|
</screen>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<simplelist>
|
|
<member><function>imagepng</function></member>
|
|
<member><function>imagejpeg</function></member>
|
|
<member><function>imagegif</function></member>
|
|
<member><function>imagewbmp</function></member>
|
|
<member><function>imagewebp</function></member>
|
|
<member><function>imageavif</function></member>
|
|
<member><function>imagetypes</function></member>
|
|
</simplelist>
|
|
</refsect1>
|
|
</refentry>
|
|
<!-- 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
|
|
-->
|