Req #61024 [Csd->Nab]: 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: Closed
+Status: Not a bug
Type: Feature/Change Request
Package: GetImageSize related
PHP Version: Irrelevant
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
This information is actually truncated in the IPTC APP13 segment;
there is complete info in the XMP APP1 segment, but parsing XMP
metadata is not supported. Also note that the XMP APP1 segment is
the second APP1 segment in that image file, but getimagesize()
only ever reports the first APPn segment.
Previous Comments:
------------------------------------------------------------------------
[2020-06-23 08:54:30] opajaap at opajaap dot nl
I want to re-open this request.
Here is a link to an image that shows the issue for iptc tag 2#025
https://betatest.opajaap.nl/wp-content/uploads/wppa-source/album-38/M.50.jpg
'Mandela family, apartheid, children, domestic lifer, politics, r' is truncated to 64
chars
Here one for tag 2#92
https://betatest.opajaap.nl/wp-content/uploads/wppa-source/album-38/M.50.jpg
'Soweto, Johannesburg, Gauteng So' is truncated to 32 chars:
------------------------------------------------------------------------
[2015-07-17 12:51:37] opajaap at opajaap dot nl
I can also no longer repreoduce this problem. Call closed.
------------------------------------------------------------------------
[2015-07-17 12:05:15] cmb@php.net
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.
------------------------------------------------------------------------
[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)