reference/image/functions/imagecreatefromwebp.xml
d09a881a8e9059d11e756ee59d75bf404d6941ed
...
...
@@ -9,12 +9,13 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>resource</type><methodname>imagecreatefromwebp</methodname>
12
+
<type class="union"><type>GdImage</type><type>false</type></type><methodname>imagecreatefromwebp</methodname>
13
13
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
16
<function>imagecreatefromwebp</function> returns an image identifier
17
17
representing the image obtained from the given filename.
18
+
Note that animated WebP files cannot be read.
18
19
</para>
19
20
&tip.fopen-wrapper;
20
21
</refsect1>
...
...
@@ -40,6 +41,29 @@
40
41
<para>&gd.return.identifier;</para>
41
42
</refsect1>
42
43

44
+
<refsect1 role="changelog">
45
+
&reftitle.changelog;
46
+
<informaltable>
47
+
<tgroup cols="2">
48
+
<thead>
49
+
<row>
50
+
<entry>&Version;</entry>
51
+
<entry>&Description;</entry>
52
+
</row>
53
+
</thead>
54
+
<tbody>
55
+
<row>
56
+
<entry>8.0.0</entry>
57
+
<entry>
58
+
On success, this function returns a <classname>GDImage</classname> instance now;
59
+
previously, a <type>resource</type> was returned.
60
+
</entry>
61
+
</row>
62
+
</tbody>
63
+
</tgroup>
64
+
</informaltable>
65
+
</refsect1>
66
+

43
67
<refsect1 role="examples">
44
68
&reftitle.examples;
45
69
<para>
...
...
@@ -61,7 +85,6 @@ imagedestroy($im);
61
85
</para>
62
86
</refsect1>
63
87
</refentry>
64
-

65
88
<!-- Keep this comment at the end of the file
66
89
Local variables:
67
90
mode: sgml
68
91