Skip to content
Snippets Groups Projects
Commit 1b1327ad authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- 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 98f926fc
No related branches found
No related tags found
No related merge requests found
...@@ -263,7 +263,7 @@ function image_gd_crop($source, $destination, $x, $y, $width, $height) { ...@@ -263,7 +263,7 @@ function image_gd_crop($source, $destination, $x, $y, $width, $height) {
$im = image_gd_open($source, $info['extension']); $im = image_gd_open($source, $info['extension']);
$res = imageCreateTrueColor($width, $height); $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']); $result = image_gd_close($res, $destination, $info['extension']);
imageDestroy($res); imageDestroy($res);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment