#20560 [Opn->Bgs]: exif_read_data can't read my jpeg comment
| From: | iliaa@php.net | Date: | Fri, 22 Nov 2002 14:58:26 +0000 |
| Subject: | #20560 [Opn->Bgs]: exif_read_data can't read my jpeg comment | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-25563@lists.php.net to get a copy of this message | ||
ID: 20560
Updated by: iliaa@php.net
Reported By: play@slowchildren.com
-Status: Open
+Status: Bogus
Bug Type: *Graphics related
Operating System: FreeBSD/Pentium III
PHP Version: 4.3.0RC1
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
The comment is there, here is datadump of what exif_read_data() shows
for your image.
array(8) {
["FileName"]=>
string(12) "IMG_0458.JPG"
["FileDateTime"]=>
int(1037974126)
["FileSize"]=>
int(3456)
["FileType"]=>
int(2)
["MimeType"]=>
string(10) "image/jpeg"
["SectionsFound"]=>
string(7) "COMMENT"
["COMPUTED"]=>
array(4) {
["html"]=>
string(23) "width="128" height="96""
["Height"]=>
int(96)
["Width"]=>
int(128)
["IsColor"]=>
int(1)
}
[0]=>
string(10) "AppleMark
"
}
The comment "AppleMark" is there, I've verified it with jhead v1.8
Previous Comments:
------------------------------------------------------------------------
[2002-11-21 23:16:35] play@slowchildren.com
http://www.slowchildren.com/pictures/test.php
script =-=-=-=-=-=-=-=-=
<?
$exif = exif_read_data ('pictures/IMG_0454.JPG',0,true,false);
echo "IMG_0458.JPG:<br /><img src=thumb.php?file=pictures/IMG_0458.JPG
/><br />\n";
foreach($exif as $key=>$section) {
foreach($section as $name=>$val) {
echo "$key.$name: $val<br />\n";
}
}
?>
/script =-=-=-=-=-=-=-=-=
This script can't seem to find my JPEG comment. Using jhead* or
GraphicCoverter* shows my jpeg comment just find. Why doesn't it work
in php???
*http://www.sentex.net/~mwandel/jhead/
*http://lemkesoft.de/us_gcabout.html
Here's the image:
http://www.slowchildren.com/pictures/pictures/IMG_0454.JPG
Just in case:
'./configure' '--with-gd' '--without-msql' '--with-iodbc'
'--with-curl' '--with-png-dir=/usr/local/lib'
'--with-mysql=/usr/local'
'--with-config-file-path=/usr/www/users/dant/scott/phpini'
'--enable-debug=no' '--enable-track-vars=yes' '--enable-ftp=yes'
'--enable-force-cgi-redirect=yes' '--enable-exif' '--enable-mbstring'
'--enable-magic-quotes' '--enable-bcmath' '--with-zlib-dir=/usr/local'
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20560&edit=1