reference/image/functions/imagetypes.xml
928f0513239395b4f2e617e5786d0c62dcb4abb4
...
...
@@ -15,16 +15,60 @@
15
15
Returns the image types supported by the current PHP installation.
16
16
</para>
17
17
</refsect1>
18
+

19
+
<refsect1 role="parameters">
20
+
&reftitle.parameters;
21
+
&no.function.parameters;
22
+
</refsect1>
23
+
18
24
<refsect1 role="returnvalues">
19
25
&reftitle.returnvalues;
20
26
<para>
21
27
Returns a bit-field corresponding to the image formats supported by the
22
28
version of GD linked into PHP. The following bits are returned,
29
+
<constant>IMG_AVIF</constant> | <constant>IMG_BMP</constant> |
23
30
<constant>IMG_GIF</constant> | <constant>IMG_JPG</constant> |
24
31
<constant>IMG_PNG</constant> | <constant>IMG_WBMP</constant> |
25
-
<constant>IMG_XPM</constant>.
32
+
<constant>IMG_XPM</constant> | <constant>IMG_WEBP</constant>.
33
+
</para>
34
+
</refsect1>
35
+

36
+
<refsect1 role="changelog">
37
+
&reftitle.changelog;
38
+
<para>
39
+
<informaltable>
40
+
<tgroup cols="2">
41
+
<thead>
42
+
<row>
43
+
<entry>&Version;</entry>
44
+
<entry>&Description;</entry>
45
+
</row>
46
+
</thead>
47
+
<tbody>
48
+
<row>
49
+
<entry>8.1.0</entry>
50
+
<entry>
51
+
<constant>IMG_AVIF</constant> added.
52
+
</entry>
53
+
</row>
54
+
<row>
55
+
<entry>7.2.0</entry>
56
+
<entry>
57
+
<constant>IMG_BMP</constant> added.
58
+
</entry>
59
+
</row>
60
+
<row>
61
+
<entry>7.0.10</entry>
62
+
<entry>
63
+
<constant>IMG_WEBP</constant> added.
64
+
</entry>
65
+
</row>
66
+
</tbody>
67
+
</tgroup>
68
+
</informaltable>
26
69
</para>
27
70
</refsect1>
71
+
28
72
<refsect1 role="examples">
29
73
&reftitle.examples;
30
74
<para>
...
...
@@ -42,6 +86,13 @@ if (imagetypes() & IMG_PNG) {
42
86
</example>
43
87
</para>
44
88
</refsect1>
89
+

90
+
<refsect1 role="seealso">
91
+
&reftitle.seealso;
92
+
<simplelist>
93
+
<member><function>gd_info</function></member>
94
+
</simplelist>
95
+
</refsect1>
45
96
</refentry>
46
97

47
98
<!-- Keep this comment at the end of the file
48
99