svn: /phpdoc/en/trunk/reference/image/functions/ iptcembed.xml
| From: | Christoph Michael Becker | Date: | Fri, 17 Jul 2015 13:16:01 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/image/functions/ iptcembed.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-13461@lists.php.net to get a copy of this message | ||
cmb Fri, 17 Jul 2015 13:16:01 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=337182
Log:
fixed documentation of spool parameter;
made minor improvements to example
Changed paths:
U phpdoc/en/trunk/reference/image/functions/iptcembed.xml
Modified: phpdoc/en/trunk/reference/image/functions/iptcembed.xml
===================================================================
--- phpdoc/en/trunk/reference/image/functions/iptcembed.xml 2015-07-17 12:26:58 UTC (rev 337181)
+++ phpdoc/en/trunk/reference/image/functions/iptcembed.xml 2015-07-17 13:16:01 UTC (rev 337182)
@@ -11,7 +11,7 @@
<type>mixed</type><methodname>iptcembed</methodname>
<methodparam><type>string</type><parameter>iptcdata</parameter></methodparam>
<methodparam><type>string</type><parameter>jpeg_file_name</parameter></methodparam>
- <methodparam
choice="opt"><type>int</type><parameter>spool</parameter></methodparam>
+ <methodparam
choice="opt"><type>int</type><parameter>spool</parameter><initializer>0</initializer></methodparam>
</methodsynopsis>
<para>
Embeds binary IPTC data into a JPEG image.
@@ -41,8 +41,8 @@
<term><parameter>spool</parameter></term>
<listitem>
<para>
- Spool flag. If the spool flag is over 2 then the JPEG will be
- returned as a string.
+ Spool flag. If the spool flag is less than 2 then the JPEG will be
+ returned as a string. Otherwise the JPEG will be printed to STDOUT.
</para>
</listitem>
</varlistentry>
@@ -52,8 +52,9 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- If success and spool flag is lower than 2 then the JPEG will not be
- returned as a string, &false; on errors.
+ If <parameter>spool</parameter> is less than 2, the JPEG will be returned,
+ &return.falseforfailure;. Otherwise returns &true; on success
+ &return.falseforfailure;.
</para>
</refsect1>
<refsect1 role="examples">
@@ -90,7 +91,7 @@
// Path to jpeg file
$path = './phplogo.jpg';
-// We need to check if theres any IPTC data in the jpeg image. If there is then
+// We need to check if there is any IPTC data in the jpeg image. If there is, then
// bail out because we cannot embed any image that already has some IPTC data!
$image = getimagesize($path, $info);