1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
|
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.7 $ -->
<refentry xml:id='function.gd-info' xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>gd_info</refname>
<refpurpose>Retrieve information about the currently installed GD library</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>gd_info</methodname>
<void/>
</methodsynopsis>
<para>
Gets information about the version and capabilities of the installed GD
library.
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Returns an associative array.
</para>
<para>
<table>
<title>Elements of array returned by <function>gd_info</function></title>
<tgroup cols="2">
<thead>
<row>
<entry>Attribute</entry>
<entry>Meaning</entry>
</row>
</thead>
<tbody>
<row>
<entry>GD Version</entry>
<entry><type>string</type> value describing the installed
<literal>libgd</literal> version.</entry>
</row>
<row>
<entry>Freetype Support</entry>
<entry><type>boolean</type> value. &true;
if Freetype Support is installed.</entry>
</row>
<row>
<entry>Freetype Linkage</entry>
<entry><type>string</type> value describing the way in which
Freetype was linked. Expected values are: 'with freetype',
'with TTF library', and 'with unknown library'. This element will
only be defined if <literal>Freetype Support</literal> evaluated to
&true;.</entry>
</row>
<row>
<entry>T1Lib Support</entry>
<entry><type>boolean</type> value. &true;
if <literal>T1Lib</literal> support is included.</entry>
</row>
<row>
<entry>GIF Read Support</entry>
<entry><type>boolean</type> value. &true;
if support for <emphasis>reading</emphasis> <literal>GIF</literal>
images is included.</entry>
</row>
<row>
<entry>GIF Create Support</entry>
<entry><type>boolean</type> value. &true;
if support for <emphasis>creating</emphasis> <literal>GIF</literal>
images is included.</entry>
</row>
<row>
<entry>JPG Support</entry>
<entry><type>boolean</type> value. &true;
if <literal>JPG</literal> support is included.</entry>
</row>
<row>
<entry>PNG Support</entry>
<entry><type>boolean</type> value. &true;
if <literal>PNG</literal> support is included.</entry>
</row>
<row>
<entry>WBMP Support</entry>
<entry><type>boolean</type> value. &true;
if <literal>WBMP</literal> support is included.</entry>
</row>
<row>
<entry>XBM Support</entry>
<entry><type>boolean</type> value. &true;
if <literal>XBM</literal> support is included.</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>Using <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.0 compatible)"
["FreeType Support"]=>
bool(false)
["T1Lib Support"]=>
bool(false)
["GIF Read Support"]=>
bool(true)
["GIF Create Support"]=>
bool(false)
["JPG Support"]=>
bool(false)
["PNG Support"]=>
bool(true)
["WBMP Support"]=>
bool(true)
["XBM Support"]=>
bool(false)
}
]]>
</screen>
</example>
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>imagepng</function></member>
<member><function>imagejpeg</function></member>
<member><function>imagegif</function></member>
<member><function>imagewbmp</function></member>
<member><function>imagetypes</function></member>
</simplelist>
</para>
</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:"../../../../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
-->
|