From 0a28c17cac66dcb2445fe0f5c7843762f724c97a Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 31 Jul 2005 10:16:12 +0000 Subject: - Patch #27863 by Robrecht: fixed order of parameters passed to imagecopy(). Could result in black images. --- includes/image.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/image.inc b/includes/image.inc index 7d74d0374..570d0e371 100644 --- a/includes/image.inc +++ b/includes/image.inc @@ -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); -- cgit v1.2.3