ID:               32323
 Updated by:       [EMAIL PROTECTED]
 Reported By:      bavaglino at west dot de
-Status:           Open
+Status:           Feedback
 Bug Type:         *Graphics related
 Operating System: Linux infong 2.4 #1
 PHP Version:      4.3.10
-Assigned To:      
+Assigned To:      pajoye
 New Comment:

Please provide the original image. Use a simple script without dynamic
values, something like the sample available at 
http://de3.php.net/imagecopyresampled

--Pierre


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

[2005-03-15 20:23:14] bavaglino at west dot de

i changed $image_norm with $image now it's correct for this post, but
still larger pictures only thumbnails in black.

imagecopyresampled($image_norm, $image, 0,0,
0,0,200,$hoehe_norm,$breite,$hoehe);

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

[2005-03-15 19:57:49] bavaglino at west dot de

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 this bug report at http://bugs.php.net/?id=32323&edit=1

Reply via email to