From:             wuelle at digicol dot de
Operating system: Linux
PHP version:      4.3.2
PHP Bug Type:     *General Issues
Bug description:  GetImageSize and read_exif_data Problem

Description:
------------
Try to compute the size of an image. The picture with exif works with
photoshop and with any browser. The picture is available at
'http://www.wuelle.de/20016707_2.jpg'.

I don't know what the problem is -  Is this an invalid JPEG file or a php
prblem ?

Reproduce code:
---------------
<?php

$original = "20016707_2.jpg";

echo "exif type : ". exif_imagetype($original) ."\n";

$exif = read_exif_data ($original);
while(list($k,$v)=each($exif))
  echo "$k: $v<br>\n";

$result = GetImageSize($original);
print_r($result);

echo "\nready\n";

?>

Expected result:
----------------
Information about the picture.

Actual result:
--------------
Content-type: text/html
X-Powered-By: PHP/4.3.2

exif type : 2
<br />
<b>Warning</b>:  read_exif_data(20016707_2.jpg): process
tag(x927C=MakerNote  ): Illegal pointer offset(x02CA &lt; x81A5203) in
<b>/dot/dcl/digidcl/manni/fehler_pic/wuelle.php3</b> on line <b>7</b><br
/>
<br />
<b>Warning</b>:  read_exif_data(): File structure corrupted in
<b>/dot/dcl/digidcl/manni/fehler_pic/wuelle.php3</b> on line <b>7</b><br
/>
<br />
<b>Warning</b>:  read_exif_data(20016707_2.jpg): invalid JPEG file in
<b>/dot/dcl/digidcl/manni/fehler_pic/wuelle.php3</b> on line <b>7</b><br
/>
<br />
<b>Warning</b>:  Variable passed to each() is not an array or object in
<b>/dot/dcl/digidcl/manni/fehler_pic/wuelle.php3</b> on line <b>8</b><br
/>



-- 
Edit bug report at http://bugs.php.net/?id=24268&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24268&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24268&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24268&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24268&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24268&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24268&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24268&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24268&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24268&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24268&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24268&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24268&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24268&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24268&r=gnused

Reply via email to