#32323 [Opn]: imagecreatefromjpeg only black picture
| From: | bavaglino at west dot de | Date: | Tue, 15 Mar 2005 19:23:15 +0000 |
| Subject: | #32323 [Opn]: imagecreatefromjpeg only black picture | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-75381@lists.php.net to get a copy of this message | ||
ID: 32323
User updated by: bavaglino at west dot de
Reported By: bavaglino at west dot de
Status: Open
Bug Type: *Graphics related
Operating System: Linux infong 2.4 #1
PHP Version: 4.3.10
New Comment:
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);
Previous Comments:
------------------------------------------------------------------------
[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