reference/image/functions/imagecreatefromgif.xml
213fbd9440a224f9c1da4942c85124ce0c120c52
...
...
@@ -8,13 +8,20 @@
8
8
<refsect1 role="description">
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
-
<type>resource</type><methodname>imagecreatefromgif</methodname>
11
+
<type class="union"><type>GdImage</type><type>false</type></type><methodname>imagecreatefromgif</methodname>
12
12
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
13
13
</methodsynopsis>
14
14
<para>
15
15
<function>imagecreatefromgif</function> returns an image identifier
16
16
representing the image obtained from the given filename.
17
17
</para>
18
+
<caution>
19
+
<para>
20
+
When reading GIF files into memory, only the first frame
21
+
is returned in the image object. The size of the image is not
22
+
necessarily what is reported by <function>getimagesize</function>.
23
+
</para>
24
+
</caution>
18
25
&tip.fopen-wrapper;
19
26
</refsect1>
20
27
<refsect1 role="parameters">
...
...
@@ -36,6 +43,30 @@
36
43
&reftitle.returnvalues;
37
44
<para>&gd.return.identifier;</para>
38
45
</refsect1>
46
+

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

39
70
<refsect1 role="examples">
40
71
&reftitle.examples;
41
72
<example>
...
...
@@ -83,19 +114,7 @@ imagedestroy($img);
83
114
</mediaobject>
84
115
</example>
85
116
</refsect1>
86
-
<refsect1 role="notes">
87
-
&reftitle.notes;
88
-
<note>
89
-
<para>
90
-
GIF support was removed from the GD library in Version 1.6,
91
-
and added back in Version 2.0.28. This function is not
92
-
available between these versions.
93
-
</para>
94
-
</note>
95
-
&warn.no-win32-fopen-wrapper;
96
-
</refsect1>
97
117
</refentry>
98
-

99
118
<!-- Keep this comment at the end of the file
100
119
Local variables:
101
120
mode: sgml
102
121