ID: 27591 Updated by: [EMAIL PROTECTED] Reported By: tom at kornack dot com -Status: Open +Status: Feedback Bug Type: GetImageSize related Operating System: Mac OS X 10.3.2 PHP Version: 5CVS-2004-03-14 (dev) New Comment:
Hello, It seems that this jp2 image is broken. None of the tools I used to test can open it, even not the jp2 reference tools. Which tools have been used to create this file? pierre Previous Comments: ------------------------------------------------------------------------ [2004-03-14 00:42:50] tom at kornack dot com 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 this bug report at http://bugs.php.net/?id=27591&edit=1