From: mito at nic dot fi
Operating system: FreeBSD 4.8-RELEASE #0
PHP version: 4.3.4
PHP Bug Type: GD related
Bug description: imagecreatefromjpeg fails if the picture is too high
Description:
------------
When calling imagecreatefromjpeg("image.jpg"); where image.jpg is
1200x1600 pixels of size it causes an internal server error with no actual
error output just a plank page. I'm not sure if it's because the picture
is too high or does it occur every time if the height is larger than
width. I tested with many similar jpgs that were produced in same way (
same digicam ), but were 1600x1200 and it worked fine. I also tested the
same code in 4.3.2 running on Windows and it worked fine with both sizes
of picture.
Reproduce code:
---------------
<?php
$im = imagecreatefromjpeg("badsanta.jpg");
print "Done!";
?>
See it at: http://mindanao.globat.com/~hopea.net/errortest/
Expected result:
----------------
Done!
Actual result:
--------------
500 Internal system error and a blank page (in IE).
--
Edit bug report at http://bugs.php.net/?id=27636&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27636&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27636&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27636&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27636&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27636&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27636&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27636&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27636&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27636&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27636&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27636&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27636&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27636&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27636&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27636&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27636&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27636&r=float