aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorSteve Clay <steve@mrclay.org>2012-06-14 11:09:40 -0400
committerSteve Clay <steve@mrclay.org>2012-06-14 11:09:40 -0400
commit9607776966d5c0f8a132dd4275841298619907ea (patch)
treeb6128af54a2bba23d1cb8faa7cc21a198463a5cf /engine/lib
parentfd4f7ef53452f8ccd1c53b82e6b2cc0c86788e3f (diff)
downloadelgg-9607776966d5c0f8a132dd4275841298619907ea.tar.gz
elgg-9607776966d5c0f8a132dd4275841298619907ea.tar.bz2
Fixes #4577: Transparency converted to white instead of black
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/filestore.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/engine/lib/filestore.php b/engine/lib/filestore.php
index 86f6d9baa..93a127257 100644
--- a/engine/lib/filestore.php
+++ b/engine/lib/filestore.php
@@ -149,6 +149,12 @@ $x1 = 0, $y1 = 0, $x2 = 0, $y2 = 0, $upscale = FALSE) {
return FALSE;
}
+ // color transparencies white (default is black)
+ imagefilledrectangle(
+ $new_image, 0, 0, $params['newwidth'], $params['newheight'],
+ imagecolorallocate($new_image, 255, 255, 255)
+ );
+
$rtn_code = imagecopyresampled( $new_image,
$original_image,
0,