[PHP-DEV] CVS update: php3/doc/functions From: thies (php-dev <email protected>)
Date: 11/04/98

Date: Wednesday November 4, 1998 @ 3:14
Author: thies

Update of /repository/php3/doc/functions
In directory asf:/u2/tmp/cvs-serv9052/functions

Modified Files:
        image.sgml misc.sgml
Log Message:
added docs for 3th optional GetImageSize parameter
wrote something about iptcparse()

Index: php3/doc/functions/image.sgml
diff -c php3/doc/functions/image.sgml:1.19 php3/doc/functions/image.sgml:1.20
*** php3/doc/functions/image.sgml:1.19 Sat Oct 10 18:35:51 1998
--- php3/doc/functions/image.sgml Wed Nov 4 03:14:03 1998
***************
*** 21,26 ****
--- 21,27 ----
      <funcsynopsis>
       <funcdef>array <function>getimagesize</function></funcdef>
       <paramdef>string <parameter>filename</parameter></paramdef>
+ <paramdef>array <parameter><optional>imageinfo</optional></parameter></paramdef>
      </funcsynopsis>
      <para>
       The <function>GetImageSize</function> function will determine the
***************
*** 41,46 ****
--- 42,68 ----
        <programlisting>
  &lt;?php $size = GetImageSize("img/flag.jpg"); ?>
  &lt;IMG SRC="img/flag.jpg" &lt;?php echo $size[3]; ?>>
+ </programlisting></example>
+
+ <para>
+ The optional <parameter>imageinfo</parameter> parameter allows you to
+ extract some extended information from the image file. Currently this
+ will return the diffrent <acronym>JPG</acronym> APP markers in an
+ associative Array. Some Programs use these APP markers to embedd text
+ information in images. A very common one in to embed IPTC <ulink
+ url="http://www.xe.net/iptc/">http://www.xe.net/iptc/> information
+ in the APP13 marker. You can use the <function>iptcparse</function> function
+ to parse the binary APP13 marker into something readable.
+ <example>
+ <title>GetImageSize returning IPTC</title>
+ <programlisting>
+ &lt;?php
+ $size = GetImageSize("testimg.jpg",&$info);
+ if (isset($info["APP13"])) {
+ $iptc = iptcparse($info["APP13"]);
+ var_dump($iptc);
+ }
+ ?>
  </programlisting></example>
  
       <note><simpara>
Index: php3/doc/functions/misc.sgml
diff -c php3/doc/functions/misc.sgml:1.9 php3/doc/functions/misc.sgml:1.10
*** php3/doc/functions/misc.sgml:1.9 Mon Oct 26 14:53:19 1998
--- php3/doc/functions/misc.sgml Wed Nov 4 03:14:04 1998
***************
*** 81,86 ****
--- 81,107 ----
     </refsect1>
    </refentry>
  
+ <refentry id="function.iptcparse">
+ <refnamediv>
+ <refname>iptcparse</refname>
+ <refpurpose>Parse a binary IPTC <ulink url="
http://www.xe.net/iptc/">
+ http://www.xe.net/iptc/> block into single tags.
+ </refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcdef>array <function></function></funcdef>
+ <paramdef>string <parameter>iptcblock</parameter></paramdef>
+ <void>
+ </funcsynopsis>
+ <simpara>
+ This function parses a binary IPTC block into its single tags. It
+ returns an array using the tagmarker as an index and the value as the
+ value. See <function>GetImageSize</function> for a sample.
+ </refsect1>
+ </refentry>
+
    <refentry id="function.leak">
     <refnamediv>
      <refname>leak</refname>

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>