Req #61024 [Csd]: IPTC tags limited to 64 chars

From: Date: Tue, 23 Jun 2020 08:54:30 +0000
Subject: Req #61024 [Csd]: IPTC tags limited to 64 chars
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-227603@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=61024&edit=1 ID: 61024 User updated by: opajaap at opajaap dot nl Reported by: opajaap at opajaap dot nl Summary: IPTC tags limited to 64 chars Status: Closed Type: Feature/Change Request Package: GetImageSize related PHP Version: Irrelevant Assigned To: cmb Block user comment: N Private report: N New Comment: 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: Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#227603) next »