reference/exif/functions/exif-imagetype.xml
f40e02ff1bd0eb238dc8e542434004de9eb03a58
...
...
@@ -9,7 +9,7 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>int</type><methodname>exif_imagetype</methodname>
12
+
<type class="union"><type>int</type><type>false</type></type><methodname>exif_imagetype</methodname>
13
13
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
14
14
</methodsynopsis>
15
15
<para>
...
...
@@ -46,42 +46,6 @@
46
46
same value that <function>getimagesize</function> returns in index 2 but
47
47
<function>exif_imagetype</function> is much faster.
48
48
</para>
49
-

50
-
<note>
51
-
<para>
52
-
<function>exif_imagetype</function> will emit an <constant>E_NOTICE</constant>
53
-
and return &false; if it is unable to read enough bytes from the file to
54
-
determine the image type.
55
-
<!-- If the function finds an incomplete PNG header then it may emit an
56
-
<constant>E_WARNING</constant> instead. - Is this worth including? -->
57
-
</para>
58
-
</note>
59
-
</refsect1>
60
-
<refsect1 role="changelog">
61
-
&reftitle.changelog;
62
-
<para>
63
-
<informaltable>
64
-
<tgroup cols="2">
65
-
<thead>
66
-
<row>
67
-
<entry>&Version;</entry>
68
-
<entry>&Description;</entry>
69
-
</row>
70
-
</thead>
71
-
<tbody>
72
-
<row>
73
-
<entry>5.3.0</entry>
74
-
<entry>
75
-
Added icon support.
76
-
</entry>
77
-
</row>
78
-
</tbody>
79
-
</tgroup>
80
-
</informaltable>
81
-
</para>
82
-
</refsect1>
83
-
<refsect1 role="constants">
84
-
&reftitle.constants;
85
49
<para>
86
50
The following constants are defined, and represent possible
87
51
<function>exif_imagetype</function> return values:
...
...
@@ -165,11 +129,60 @@
165
129
<entry>17</entry>
166
130
<entry><constant>IMAGETYPE_ICO</constant></entry>
167
131
</row>
132
+
<row>
133
+
<entry>18</entry>
134
+
<entry><constant>IMAGETYPE_WEBP</constant></entry>
135
+
</row>
136
+
<row>
137
+
<entry>19</entry>
138
+
<entry><constant>IMAGETYPE_AVIF</constant></entry>
139
+
</row>
168
140
</tbody>
169
141
</tgroup>
170
142
</table>
171
143
</para>
144
+

145
+
<note>
146
+
<para>
147
+
<function>exif_imagetype</function> will emit an <constant>E_NOTICE</constant>
148
+
and return &false; if it is unable to read enough bytes from the file to
149
+
determine the image type.
150
+
<!-- If the function finds an incomplete PNG header then it may emit an
151
+
<constant>E_WARNING</constant> instead. - Is this worth including? -->
152
+
</para>
153
+
</note>
154
+

155
+
</refsect1>
156
+
<refsect1 role="changelog">
157
+
&reftitle.changelog;
158
+
<para>
159
+
<informaltable>
160
+
<tgroup cols="2">
161
+
<thead>
162
+
<row>
163
+
<entry>&Version;</entry>
164
+
<entry>&Description;</entry>
165
+
</row>
166
+
</thead>
167
+
<tbody>
168
+
<row>
169
+
<entry>7.1.0</entry>
170
+
<entry>
171
+
Added WebP support.
172
+
</entry>
173
+
</row>
174
+
<row>
175
+
<entry>8.1.0</entry>
176
+
<entry>
177
+
Added AVIF support.
178
+
</entry>
179
+
</row>
180
+
</tbody>
181
+
</tgroup>
182
+
</informaltable>
183
+
</para>
172
184
</refsect1>
185
+

173
186
<refsect1 role="examples">
174
187
&reftitle.examples;
175
188
<para>
...
...
@@ -197,7 +210,6 @@ if (exif_imagetype('image.gif') != IMAGETYPE_GIF) {
197
210
</para>
198
211
</refsect1>
199
212
</refentry>
200
-

201
213
<!-- Keep this comment at the end of the file
202
214
Local variables:
203
215
mode: sgml
204
216