Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<iptcembedjpeg2wbmp>
^GD and Image FunctionsLast updated: Mon, 26 Oct 2026

iptcparse

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

iptcparse — Parse a binary IPTC block into single tags

Description

function iptcparse(string $iptc_block): array|false

Parses an » IPTC block into its single tags.

Parameters

iptc_block

A binary IPTC block.

Return Values

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.

Examples

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

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

Notes

Note:

This function does not require the GD image library.


<iptcembedjpeg2wbmp>
^GD and Image FunctionsLast updated: Mon, 26 Oct 2026