reference/image/functions/imagegif.xml
213fbd9440a224f9c1da4942c85124ce0c120c52
...
...
@@ -9,12 +9,12 @@
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
11
<type>bool</type><methodname>imagegif</methodname>
12
-
<methodparam><type>resource</type><parameter>image</parameter></methodparam>
13
-
<methodparam choice="opt"><type>string</type><parameter>filename</parameter></methodparam>
12
+
<methodparam><type>GdImage</type><parameter>image</parameter></methodparam>
13
+
<methodparam choice="opt"><type class="union"><type>resource</type><type>string</type><type>null</type></type><parameter>file</parameter><initializer>&null;</initializer></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
16
<function>imagegif</function> creates the <acronym>GIF</acronym>
17
-
file in filename from the image <parameter>image</parameter>. The
17
+
file in <parameter>file</parameter> from the image <parameter>image</parameter>. The
18
18
<parameter>image</parameter> argument is the return from the
19
19
<function>imagecreate</function> or <literal>imagecreatefrom*</literal>
20
20
function.
...
...
@@ -32,7 +32,7 @@
32
32
<variablelist>
33
33
&gd.image.description;
34
34
<varlistentry>
35
-
<term><parameter>filename</parameter></term>
35
+
<term><parameter>file</parameter></term>
36
36
<listitem>
37
37
<para>&gd.image.path;</para>
38
38
</listitem>
...
...
@@ -45,7 +45,26 @@
45
45
<para>
46
46
&return.success;
47
47
</para>
48
+
&gd.return.trueonerror;
48
49
</refsect1>
50
+

51
+
<refsect1 role="changelog">
52
+
&reftitle.changelog;
53
+
<informaltable>
54
+
<tgroup cols="2">
55
+
<thead>
56
+
<row>
57
+
<entry>&Version;</entry>
58
+
<entry>&Description;</entry>
59
+
</row>
60
+
</thead>
61
+
<tbody>
62
+
&gd.changelog.image-param;
63
+
</tbody>
64
+
</tgroup>
65
+
</informaltable>
66
+
</refsect1>
67
+

49
68
<refsect1 role="examples">
50
69
&reftitle.examples;
51
70
<para>
...
...
@@ -99,12 +118,6 @@ echo 'Converted PNG image to GIF with success!';
99
118
&reftitle.notes;
100
119
<note>
101
120
<para>
102
-
<acronym>GIF</acronym> support was removed from the <acronym>GD</acronym>
103
-
library in Version 1.6, and added back in Version 2.0.28. This function
104
-
is not available between these versions. For more information, see the
105
-
<link xlink:href="&url.gd;">GD Project</link> site.
106
-
</para>
107
-
<para>
108
121
The following code snippet allows you to write more
109
122
portable PHP applications by auto-detecting the
110
123
type of GD support which is available. Replace
...
...
@@ -169,9 +182,8 @@ if($im)
169
182
</note>
170
183
<note>
171
184
<para>
172
-
As of PHP 4.0.2 you can use the function
173
-
<function>imagetypes</function> in place of
174
-
<function>function_exists</function> for checking
185
+
You can use the function
186
+
<function>imagetypes</function> for checking
175
187
the presence of the various supported image formats:
176
188
<informalexample>
177
189
<programlisting role="php">
...
...
@@ -195,17 +207,14 @@ elseif(imagetypes() & IMG_JPG)
195
207
</refsect1>
196
208
<refsect1 role="seealso">
197
209
&reftitle.seealso;
198
-
<para>
199
-
<simplelist>
200
-
<member><function>imagepng</function></member>
201
-
<member><function>imagewbmp</function></member>
202
-
<member><function>imagejpeg</function></member>
203
-
<member><function>imagetypes</function></member>
204
-
</simplelist>
205
-
</para>
210
+
<simplelist>
211
+
<member><function>imagepng</function></member>
212
+
<member><function>imagewbmp</function></member>
213
+
<member><function>imagejpeg</function></member>
214
+
<member><function>imagetypes</function></member>
215
+
</simplelist>
206
216
</refsect1>
207
217
</refentry>
208
-

209
218
<!-- Keep this comment at the end of the file
210
219
Local variables:
211
220
mode: sgml
212
221