iptcparse
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Parse a binary IPTC block into single tags
iptcparse
(
string $iptc_block
): array|
false
Intervention/image
$data
= [];
if (
array_key_exists
(
'APP13'
,
$info
)) {
$iptc
=
iptcparse
(
$info
[
'APP13'
]);
if (
is_array
(
$iptc
)) {
$data
[
'DocumentTitle'
] = isset(
$iptc
[
"2#005"
][
0
]) ?
$iptc
[
"2#005"
][
0
] :
null
;
src/Intervention/Image/Commands/IptcCommand.php