|
@@ -114,8 +114,9 @@ trait Fill
|
|
|
public function resizeLogo($im, $maxWidth, $maxHeight) {
|
|
|
$picWidth = imagesx($im);
|
|
|
$picHeight = imagesy($im);
|
|
|
- $newIM = imagecreatetruecolor($maxWidth, $maxHeight);
|
|
|
+ imagesavealpha($im, true);
|
|
|
|
|
|
+ $newIM = imagecreatetruecolor($maxWidth, $maxHeight);
|
|
|
|
|
|
$almostBlack = imagecolorallocate($newIM,254,254,254);
|
|
|
imagefill($newIM,0,0, $almostBlack);
|