IPTC

 

Non-technical information such as Author and Keywords can also be attached to image headers. The International Press Telecommunications Council has published as standard in widespread use referred to as IPTC.

array iptcParse  ( string iptcblock )
his 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. It returns FALSE on error or if no IPTC data was found. See getimagesize() for a sample.
<?PHP
$size 
getImageSize ('AtTheLodge.jpg',&$info);
$iptc iptcParse($info['APP13']); // key for IPTC
print_r();
?>
Array
(
    [2#000] => Array
        (
            [0] => 
        )

    [2#120] => Array
        (
            [0] => Only one beer? (Capation)
        )

    [2#122] => Array
        (
            [0] => PUTAMARE (Caption Writer)
        )

    [2#105] => Array
        (
            [0] => At The Lodge (Headline)
        )

    [2#040] => Array
        (
            [0] => Not to be taken seriously (Instructions)
        )

    [2#080] => Array
        (
            [0] => Jeff Knight (Author)
        )

    [2#085] => Array
        (
            [0] => At the End of the Table (Author'
        )

    [2#110] => Array
        (
            [0] => Jeff Knight (Credit)
        )

    [2#115] => Array
        (
            [0] => Beer (Source)
        )

    [2#005] => Array
        (
            [0] => At The Lodge (Title)
        )

    [2#055] => Array
        (
            [0] => 20030822
        )

    [2#090] => Array
        (
            [0] => New York (City)
        )

    [2#095] => Array
        (
            [0] => NY (State/Province)
        )

    [2#101] => Array
        (
            [0] => USA (USA)
        )

    [2#103] => Array
        (
            [0] => (Transmission Reference)
        )

    [2#015] => Array
        (
            [0] => 2
        )

    [2#020] => Array
        (
            [0] => Category 1 (Supplemental Categor
            [1] => Category 2 (Supplemental Categor
            [2] => Category 3 (Supplemental Categor
        )

    [2#010] => Array
        (
            [0] => 1
        )

    [2#025] => Array
        (
            [0] => Elk (Keyword)
            [1] => Head (Keyword)
            [2] => Lodge (Keyword)
            [3] => Andrew (Keyword)
            [4] => Krook (Keyword)
            [5] => Dan (Keyword)
        )

    [2#116] => Array
        (
            [0] => (Copyright Notice)
        )

)
array iptcEmbed  ( string iptcdata, string jpeg_file_name [, int spool] )
Embeds binary IPTC data into a JPEG image