From:             junk at genokita dot net
Operating system: RedHatLinux9
PHP version:      5.0.2
PHP Bug Type:     *Graphics related
Bug description:  exif_read_data() returns wrong GPSLatitude and GPSLongitude

Description:
------------
Hi,
something wrong about returned value of exif_read_data(), includes
"0"(zero) at the beginning of 3rd element at "GPSLatitude" and
"GPSLongitude".

would you see sample code below, $exif_array['GPSLongitude'][2] is
expected return '0997/100', but retuns '997/100' in some JPEG file. "zero"
was missing. it's the same at "GPSLatitude".

sample jpg file:
http://www.genokita.net/a30284954ba1884666d8016f0448a644.jpg


Reproduce code:
---------------
print_r( exif_read_data($path_to_image, 'IDF0') );

 

Expected result:
----------------
..*snip*..
[GPSLongitude] => Array
(
  [0] => 139/1
  [1] => 42/1
  [2] => 0997/100
)
..*snip*..

Actual result:
--------------
..*snip*..
[GPSLongitude] => Array
(
  [0] => 139/1
  [1] => 42/1
  [2] => 997/100
)
..*snip*..



-- 
Edit bug report at http://bugs.php.net/?id=30829&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30829&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=30829&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=30829&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30829&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30829&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30829&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30829&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30829&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30829&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30829&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=30829&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=30829&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30829&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30829&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30829&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30829&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30829&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30829&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30829&r=mysqlcfg

Reply via email to