- Patch #27863 by Robrecht: fixed order of parameters passed to imagecopy(). Could result in black images.

4.7.x
Dries Buytaert 2005-07-31 10:16:12 +00:00
parent ce094a1323
commit 0a28c17cac
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ function image_gd_crop($source, $destination, $x, $y, $width, $height) {
$im = image_gd_open($source, $info['extension']);
$res = imageCreateTrueColor($width, $height);
imageCopy($im, $res, 0, 0, $x, $y, $width, $height);
imageCopy($res, $im, 0, 0, $x, $y, $width, $height);
$result = image_gd_close($res, $destination, $info['extension']);
imageDestroy($res);