reference/image/functions/gd-info.xml
8a28a068fae1b82c3907e520a68c23967c682ac6
...
...
@@ -1,4 +1,4 @@
1
-
<?xml version="1.0" encoding="iso-8859-1"?>
1
+
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
3
<refentry xml:id='function.gd-info' xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
...
...
@@ -16,6 +16,12 @@
16
16
library.
17
17
</para>
18
18
</refsect1>
19
+

20
+
<refsect1 role="parameters">
21
+
&reftitle.parameters;
22
+
&no.function.parameters;
23
+
</refsect1>
24
+
19
25
<refsect1 role="returnvalues">
20
26
&reftitle.returnvalues;
21
27
<para>
...
...
@@ -38,60 +44,67 @@
38
44
<literal>libgd</literal> version.</entry>
39
45
</row>
40
46
<row>
41
-
<entry>Freetype Support</entry>
42
-
<entry><type>boolean</type> value. &true;
43
-
if Freetype Support is installed.</entry>
47
+
<entry>FreeType Support</entry>
48
+
<entry><type>bool</type> value. &true;
49
+
if FreeType Support is installed.</entry>
44
50
</row>
45
51
<row>
46
-
<entry>Freetype Linkage</entry>
52
+
<entry>FreeType Linkage</entry>
47
53
<entry><type>string</type> value describing the way in which
48
-
Freetype was linked. Expected values are: 'with freetype',
54
+
FreeType was linked. Expected values are: 'with freetype',
49
55
'with TTF library', and 'with unknown library'. This element will
50
-
only be defined if <literal>Freetype Support</literal> evaluated to
56
+
only be defined if <literal>FreeType Support</literal> evaluated to
51
57
&true;.</entry>
52
58
</row>
53
59
<row>
54
-
<entry>T1Lib Support</entry>
55
-
<entry><type>boolean</type> value. &true;
56
-
if <literal>T1Lib</literal> support is included.</entry>
57
-
</row>
58
-
<row>
59
60
<entry>GIF Read Support</entry>
60
-
<entry><type>boolean</type> value. &true;
61
+
<entry><type>bool</type> value. &true;
61
62
if support for <emphasis>reading</emphasis> <literal>GIF</literal>
62
63
images is included.</entry>
63
64
</row>
64
65
<row>
65
66
<entry>GIF Create Support</entry>
66
-
<entry><type>boolean</type> value. &true;
67
+
<entry><type>bool</type> value. &true;
67
68
if support for <emphasis>creating</emphasis> <literal>GIF</literal>
68
69
images is included.</entry>
69
70
</row>
70
71
<row>
71
-
<entry>JPG Support</entry>
72
-
<entry><type>boolean</type> value. &true;
73
-
if <literal>JPG</literal> support is included.</entry>
72
+
<entry>JPEG Support</entry>
73
+
<entry><type>bool</type> value. &true;
74
+
if <literal>JPEG</literal> support is included.</entry>
74
75
</row>
75
76
<row>
76
77
<entry>PNG Support</entry>
77
-
<entry><type>boolean</type> value. &true;
78
+
<entry><type>bool</type> value. &true;
78
79
if <literal>PNG</literal> support is included.</entry>
79
80
</row>
80
81
<row>
81
82
<entry>WBMP Support</entry>
82
-
<entry><type>boolean</type> value. &true;
83
+
<entry><type>bool</type> value. &true;
83
84
if <literal>WBMP</literal> support is included.</entry>
84
85
</row>
85
86
<row>
86
87
<entry>XBM Support</entry>
87
-
<entry><type>boolean</type> value. &true;
88
+
<entry><type>bool</type> value. &true;
88
89
if <literal>XBM</literal> support is included.</entry>
89
90
</row>
91
+
<row>
92
+
<entry>WebP Support</entry>
93
+
<entry><type>bool</type> value. &true;
94
+
if <literal>WebP</literal> support is included.</entry>
95
+
</row>
96
+
<row>
97
+
<entry>AVIF Support</entry>
98
+
<entry><type>bool</type> value. &true;
99
+
if <literal>AVIF</literal> support is included.
100
+
Available as of PHP 8.1.0.</entry>
101
+
</row>
90
102
</tbody>
91
103
</tgroup>
92
104
</table>
93
105
</para>
94
106
</refsect1>
107
+

95
108
<refsect1 role="examples">
96
109
&reftitle.examples;
97
110
<para>
...
...
@@ -107,18 +120,16 @@ var_dump(gd_info());
107
120
&example.outputs.similar;
108
121
<screen>
109
122
<![CDATA[
110
-
array(9) {
123
+
array(10) {
111
124
["GD Version"]=>
112
-
string(24) "bundled (2.0 compatible)"
125
+
string(24) "bundled (2.1.0 compatible)"
113
126
["FreeType Support"]=>
114
127
bool(false)
115
-
["T1Lib Support"]=>
116
-
bool(false)
117
128
["GIF Read Support"]=>
118
129
bool(true)
119
130
["GIF Create Support"]=>
120
131
bool(false)
121
-
["JPG Support"]=>
132
+
["JPEG Support"]=>
122
133
bool(false)
123
134
["PNG Support"]=>
124
135
bool(true)
...
...
@@ -126,23 +137,28 @@ array(9) {
126
137
bool(true)
127
138
["XBM Support"]=>
128
139
bool(false)
140
+
["WebP Support"]=>
141
+
bool(false)
142
+
["AVIF Support"]=>
143
+
bool(false)
129
144
}
130
145
]]>
131
146
</screen>
132
147
</example>
133
148
</para>
134
149
</refsect1>
150
+

135
151
<refsect1 role="seealso">
136
152
&reftitle.seealso;
137
-
<para>
138
-
<simplelist>
139
-
<member><function>imagepng</function></member>
140
-
<member><function>imagejpeg</function></member>
141
-
<member><function>imagegif</function></member>
142
-
<member><function>imagewbmp</function></member>
143
-
<member><function>imagetypes</function></member>
144
-
</simplelist>
145
-
</para>
153
+
<simplelist>
154
+
<member><function>imagepng</function></member>
155
+
<member><function>imagejpeg</function></member>
156
+
<member><function>imagegif</function></member>
157
+
<member><function>imagewbmp</function></member>
158
+
<member><function>imagewebp</function></member>
159
+
<member><function>imageavif</function></member>
160
+
<member><function>imagetypes</function></member>
161
+
</simplelist>
146
162
</refsect1>
147
163
</refentry>
148
164

...
...
@@ -157,7 +173,7 @@ sgml-indent-step:1
157
173
sgml-indent-data:t
158
174
indent-tabs-mode:nil
159
175
sgml-parent-document:nil
160
-
sgml-default-dtd-file:"../../../../manual.ced"
176
+
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
161
177
sgml-exposed-tags:nil
162
178
sgml-local-catalogs:nil
163
179
sgml-local-ecat-files:nil
164
180