Commit 0a28c17c authored by Dries's avatar Dries

- Patch #27863 by Robrecht: fixed order of parameters passed to imagecopy(). ...

- Patch #27863 by Robrecht: fixed order of parameters passed to imagecopy().  Could result in black images.
parent ce094a13
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment