summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-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);