Req #61024 [Opn->Fbk]: IPTC tags limited to 64 chars
Edit report at https://bugs.php.net/bug.php?id=61024&edit=1
ID: 61024
Updated by: cmb@php.net
Reported by: opajaap at opajaap dot nl
Summary: IPTC tags limited to 64 chars
-Status: Open
+Status: Feedback
Type: Feature/Change Request
Package: GetImageSize related
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
I can't reproduce the truncation of IPTC fields to 64 characters.
Please provide a link to an image where this issue can be
reproduced.
Previous Comments:
------------------------------------------------------------------------
[2012-02-09 09:16:03] opajaap at opajaap dot nl
Description:
------------
---
From manual page: http://www.php.net/function.iptcparse#refsect1-function.iptcparse-description
---
The code example below returns values in $desc truncated to 64 chars.
We would like to see that the full strings are returned.
Test script:
---------------
$attr = getimagesize($file, $info);
$iptc = iptcparse($info['APP13']);
foreach (array_keys($iptc) as $s) {
if ( is_array($iptc[$s]) ) {
$c = count ($iptc[$s]);
for ($i=0; $i <$c; $i++) {
$desc = $iptc[$s][$i];
echo $desc.'<br />';
}
}
}
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61024&edit=1
Thread (5 messages)