summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-07-31 10:16:12 +0000
committerDries Buytaert <dries@buytaert.net>2005-07-31 10:16:12 +0000
commit0a28c17cac66dcb2445fe0f5c7843762f724c97a (patch)
tree73ded7e3bbc889dbbfd3171481c36228586a9e60
parentce094a1323d64743df35f8f87e40636be868de40 (diff)
downloadbrdo-0a28c17cac66dcb2445fe0f5c7843762f724c97a.tar.gz
brdo-0a28c17cac66dcb2445fe0f5c7843762f724c97a.tar.bz2
- Patch #27863 by Robrecht: fixed order of parameters passed to imagecopy(). Could result in black images.
-rw-r--r--includes/image.inc2
1 files changed, 1 insertions, 1 deletions
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);