#26335 [Opn->Fbk]: iptcparse will not read TIFF iptc data

From: Date: Fri, 21 Nov 2003 00:24:42 +0000
Subject: #26335 [Opn->Fbk]: iptcparse will not read TIFF iptc data
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-50771@lists.php.net to get a copy of this message
ID: 26335 Updated by: iliaa@php.net Reported By: stephane dot rochon at free dot fr -Status: Open +Status: Feedback Bug Type: GetImageSize related Operating System: XP PHP Version: 4.3.3 New Comment: Please supply the images used in your tests. Previous Comments: ------------------------------------------------------------------------ [2003-11-20 14:17:46] stephane dot rochon at free dot fr Description: ------------ I have to image files. One is a jpeg and one is a tiff. They have the same IPTC data embeded using Fotostation Pro. When I read the jpeg header, I have all the IPTC information, when I read the tiff header, I get nothing. That's all ! Cheers, Stephane Reproduce code: --------------- $size = getimagesize ("D:\image.tif",&$info); if (isset ($info["APP13"])) { $iptc = iptcparse ($info["APP13"]); var_dump ($iptc); } Expected result: ---------------- That's what I get with the JPEG file : array(6) { ["2#000"]=> array(1) { [0]=> string(2) "" } ["2#120"]=> array(1) { [0]=> string(19) "Christ of the Abyss" } ["2#005"]=> array(1) { [0]=> string(18) "Christ des Abysses" } ["2#025"]=> array(28) { [0]=> string(10) "underwater" [1]=> string(4) "park" [2]=> string(7) "reserve" [3]=> string(5) "glory" [4]=> string(5) "jesus" [5]=> string(5) "power" [6]=> string(4) "soul" [7]=> string(5) "light" [8]=> string(9) "pennekamp" [9]=> string(4) "jhon" [10]=> string(5) "largo" [11]=> string(3) "key" [12]=> string(4) "keys" [13]=> string(7) "florida" [14]=> string(6) "statue" [15]=> string(4) "deep" [16]=> string(5) "water" [17]=> string(5) "angle" [18]=> string(4) "wide" [19]=> string(5) "abyss" [20]=> string(6) "christ" [21]=> string(10) "silhouette" [22]=> string(6) "prayer" [23]=> string(3) "god" [24]=> string(5) "peace" [25]=> string(3) "sun" [26]=> string(5) "faith" [27]=> string(4) "blue" } ["2#231"]=> array(1) { [0]=> string(1280) "X 22/09/2003 13:28:30 Texte enregistrŽX 02/10/2003 20:03:12 Texte enregistrŽX 08/11/2003 21:16:19 Texte enregistrŽX 08/11/2003 23:25:00 Texte enregistrŽX 08/11/2003 23:27:11 Texte enregistrŽ" } ["2#240"]=> array(1) { [0]=> string(2368) "" } Actual result: -------------- That's what I get with the TIFF file : Notice: Undefined index: APP13 in D:\Web\read_IPTC.php on line 19 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26335&edit=1

« previous php.bugs (#50771) next »