From:             bavaglino at west dot de
Operating system: Linux infong 2.4 #1
PHP version:      4.3.10
PHP Bug Type:     *Graphics related
Bug description:  imagecreatefromjpeg only black picture

Description:
------------
I have a picture upload which upload the original file and a thumbnail
pic. it works fine, but when i use a picture for example with 180DPI and
3000 x 2000 Pixel, the created thumbnail is only black.

with a smaller resolution it works fine.

Reproduce code:
---------------
 $image = imagecreatefromjpeg( $bildlink.'/'.$dateiname2 ) ;
imagecopyresampled($image, $image_norm, 0,0,
0,0,200,$hoehe_norm,$breite,$hoehe);
imagejpeg($image_norm, $bildlink.'/'.$dateiname2_norm , 100 ); 

Expected result:
----------------
i want to see the picture in a smaller version but not a black  picture.


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

Reply via email to