- Patch #27863 by Robrecht: fixed order of parameters passed to imagecopy(). Could result in black images.
parent
ce094a1323
commit
0a28c17cac
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue