From: Steve Clay Date: Thu, 14 Jun 2012 15:09:40 +0000 (-0400) Subject: Fixes #4577: Transparency converted to white instead of black X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=9607776966d5c0f8a132dd4275841298619907ea;p=lorea%2Felgg.git Fixes #4577: Transparency converted to white instead of black --- 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,