ID:               20560
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Bogus
+Status:           Verified
 Bug Type:         *Graphics related
 Operating System: FreeBSD/Pentium III
 PHP Version:      4.3.0RC1
 New Comment:

You are correct I ran it on the thumbnail image assuming that was the
complete image. On the full the image I do see the comment, however it
does not appear to be stored in the correct location.
The comment appears inside element [0] of the array returned by
exif_read_data.


Previous Comments:
------------------------------------------------------------------------

[2002-11-22 10:47:32] [EMAIL PROTECTED]

Okay...I saw the 'Applemark' as well, but couldn't figure out what that
means because 'Applemark' is not my comment.  Maybe I need to be more
specific about which computer I ran jhead on.  Using the jhead 1.8 on
MacOS X (with a freshly downloaded copy of the jpeg) I get this:

File name    : IMG_0458.JPG
File size    : 71678 bytes
File date    : 2002:11:21 23:54:20
Camera make  : Canon
Camera model : Canon PowerShot S200
Date/Time    : 2002:11:17 01:03:18
Resolution   : 480 x 640
Orientation  : rotate 270
Flash used   : No
Focal length :  5.4mm  (35mm equivalent: 37mm)
CCD width    : 5.23mm
Exposure time: 0.800 s 
Aperture     : f/2.8
Exposure bias:2.00
Metering Mode: matrix
Jpeg process : Baseline
Comment      : My roommate lookin' like a bad ass.

Is this a bug in jhead as well??  Is this a MacOS X thing??  What OS
did you test jhead on??  I couldn't get jhead to compile on my
webserver (vala.pair.com:FreeBSD).

As I mentioned above, GraphicCoverter (a great graphics app for the
mac) also shows the correct comment.  In fact, 'Applemark' doesn't show
up anywhere on my Mac.  Could it be possible that you are running jhead
on the thumbnail graphic??

Believe me, if I thought this was a support issue I wouldn't have
submitted it as a bug, I don't want to waste anyone's time.  Please
take another look.

------------------------------------------------------------------------

[2002-11-22 08:58:26] [EMAIL PROTECTED]

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

------------------------------------------------------------------------

[2002-11-21 23:16:35] [EMAIL PROTECTED]

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

Reply via email to