Bug #67447 [NEW]: imagecrop() add a black line when cropping
| From: | tonneaujeremy at gmail dot com | Date: | Sun, 15 Jun 2014 06:53:48 +0000 |
| Subject: | Bug #67447 [NEW]: imagecrop() add a black line when cropping | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-186197@lists.php.net to get a copy of this message | ||
From: tonneaujeremy at gmail dot com
Operating system: Windows and Debian 7
PHP version: 5.5.13
Package: GD related
Bug Type: Bug
Bug description:imagecrop() add a black line when cropping
Description:
------------
I've create a script based on imagecrop() function to crop an image.
After testing I saw that a black line were added on the bottom of the
cropped image.
The expected result sould be a white image (based on the example below)
with 250px width and height.
Test script:
---------------
$image = imagecreatetruecolor(500, 500);
imagefill($image, 0, 0, imagecolorallocate($images, 255, 255, 255));
$ressource = imagecrop($image, ['x' => 0, 'y' => 0, 'width'
=> 250,
'height' => 250]);
imagejpeg($ressource, 'test.jpg');
--
Edit bug report at https://bugs.php.net/bug.php?id=67447&edit=1
--