iptcparse

(PHP 4, PHP 5, PHP 7, PHP 8)

iptcparseParse a binary IPTC block into single tags

Descrizione

iptcparse(string $iptc_block): array|false

Parses an » IPTC block into its single tags.

Elenco dei parametri

iptc_block

A binary IPTC block.

Valori restituiti

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.

Esempi

Example #1 iptcparse() used together with getimagesize()

<?php
$size
= getimagesize('./test.jpg', $info);
if(isset(
$info['APP13']))
{
$iptc = iptcparse($info['APP13']);
var_dump($iptc);
}
?>

Note

Nota:

Questa funzione non necessita della libreria grafica GD.