2009-04-15 07:54:17 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 07:33:00 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-06-20 22:25:43 +00:00
|
|
|
<refentry xml:id="function.iptcparse" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
2007-01-13 17:11:46 +00:00
|
|
|
<refnamediv>
|
|
|
|
<refname>iptcparse</refname>
|
2007-01-14 03:15:21 +00:00
|
|
|
<refpurpose>Parse a binary IPTC block into single tags.</refpurpose>
|
2007-01-13 17:11:46 +00:00
|
|
|
</refnamediv>
|
2007-01-14 03:15:21 +00:00
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
2007-01-13 17:11:46 +00:00
|
|
|
<methodsynopsis>
|
|
|
|
<type>array</type><methodname>iptcparse</methodname>
|
|
|
|
<methodparam><type>string</type><parameter>iptcblock</parameter></methodparam>
|
|
|
|
</methodsynopsis>
|
2007-01-14 03:15:21 +00:00
|
|
|
<para>
|
2007-06-20 22:25:43 +00:00
|
|
|
Parses an <link xlink:href="&url.iptc;">IPTC</link> block into its single tags.
|
2007-01-14 03:15:21 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
|
|
&reftitle.parameters;
|
|
|
|
<para>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>iptcblock</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2008-08-05 07:32:05 +00:00
|
|
|
A binary IPTC block.
|
2007-01-14 03:15:21 +00:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
|
|
&reftitle.returnvalues;
|
|
|
|
<para>
|
|
|
|
Returns an array using the tagmarker as an index and the value as the
|
|
|
|
value. It returns &false; on error or if no IPTC data was found.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
2008-08-05 07:32:05 +00:00
|
|
|
<refsect1 role="examples">
|
|
|
|
&reftitle.examples;
|
2007-01-14 03:15:21 +00:00
|
|
|
<para>
|
2008-08-05 07:32:05 +00:00
|
|
|
<example>
|
|
|
|
<title>iptcparse() used together with <function>getimagesize</function></title>
|
|
|
|
<programlisting role="php">
|
|
|
|
<![CDATA[
|
|
|
|
<?php
|
|
|
|
$size = getimagesize('./test.jpg', $info);
|
|
|
|
if(isset($info['APP13']))
|
|
|
|
{
|
|
|
|
$iptc = iptcparse($info['APP13']);
|
|
|
|
var_dump($iptc);
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
]]>
|
|
|
|
</programlisting>
|
|
|
|
</example>
|
2007-01-14 03:15:21 +00:00
|
|
|
</para>
|
2007-01-13 17:11:46 +00:00
|
|
|
</refsect1>
|
2009-04-15 07:54:17 +00:00
|
|
|
|
2008-08-05 07:32:05 +00:00
|
|
|
<refsect1 role="notes">
|
|
|
|
&reftitle.notes;
|
2009-04-15 07:54:17 +00:00
|
|
|
¬e.gd.notrequired;
|
2008-08-05 07:32:05 +00:00
|
|
|
</refsect1>
|
2009-04-15 07:54:17 +00:00
|
|
|
|
2007-01-13 17:11:46 +00:00
|
|
|
</refentry>
|
2002-04-15 00:12:54 +00:00
|
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2002-04-15 00:12:54 +00:00
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|