From: tom at kornack dot com Operating system: Mac OS X 10.3.2 PHP version: 5CVS-2004-03-14 (dev) PHP Bug Type: GetImageSize related Bug description: JPEG 2000 IPTC not found by GetImageSize + iptcparse
Description: ------------ JPEG 2000 IPTC blocks are not returned by the GetImageSize imageinfo array. This information is increasingly important with the next generation of digital cameras that will call for compressed, 16-bit files. Reproduce code: --------------- <?php $filename = "iptctestimage.jp2"; $size = GetImageSize ($filename,&$info); $iptc = iptcparse ($info["APP13"]); $title = $iptc["2#105"][0]; print("Title: ".$title."\n") ?> A sample JPEG 2000 image file is available here: http://listera.org/pub/iptc/iptctestimage.jp2 This code is also available here: http://listera.org/pub/iptc/iptctest.phps A sample JPEG that does work is available here: http://listera.org/pub/iptc/iptctestimage.jpg Expected result: ---------------- Title: Title Metadata Actual result: -------------- Title: -- Edit bug report at http://bugs.php.net/?id=27591&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27591&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27591&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27591&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27591&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27591&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27591&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27591&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27591&r=support Expected behavior: http://bugs.php.net/fix.php?id=27591&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27591&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27591&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27591&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27591&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27591&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27591&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27591&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27591&r=float