From: stephane dot rochon at free dot fr
Operating system: XP
PHP version: 4.3.3
PHP Bug Type: GetImageSize related
Bug description: iptcparse will not read TIFF iptc data
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 bug report at http://bugs.php.net/?id=26335&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26335&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26335&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26335&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26335&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26335&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=26335&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26335&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26335&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26335&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26335&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26335&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26335&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26335&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26335&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26335&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26335&r=float