Req #27591 [Opn]: JPEG 2000 IPTC not found by GetImageSize + iptcparse

From: Date: Tue, 03 Apr 2018 13:00:54 +0000
Subject: Req #27591 [Opn]: JPEG 2000 IPTC not found by GetImageSize + iptcparse
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-214579@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=27591&edit=1 ID: 27591 Updated by: cmb@php.net Reported by: tom at kornack dot com Summary: JPEG 2000 IPTC not found by GetImageSize + iptcparse Status: Open Type: Feature/Change Request Package: GetImageSize related Operating System: Mac OS X 10.3.2 PHP Version: 5CVS-2004-03-14 (dev) Block user comment: N Private report: N New Comment: > Does the code actually work on jp2 files that you generate? Most likely not, since the $imageinfo parameter of getimagesize() is only supported for JFIF images. Previous Comments: ------------------------------------------------------------------------ [2004-03-14 12:16:31] tom at kornack dot com Thanks for the speedy response! iptctestimate.jp2 was created using Adobe Photoshop and the j2k plugin. I have had no problems with these files thus far, opening then with OS X native applications, web browsers, etc. I have not been able to get tbe reference jj2000 application to run on OS X yet. Here's a new file to try, created using Graphic Converter: http://listera.org/pub/iptc/iptctestimage2.jp2 Pierre: Please let me know which program you'd like me to try. Does the code actually work on jp2 files that you generate? Tom ------------------------------------------------------------------------ [2004-03-14 08:44:56] pajoye@php.net 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 ------------------------------------------------------------------------ [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 https://bugs.php.net/bug.php?id=27591&edit=1

« previous php.bugs (#214579) next »