Skip to content

Commit 171db5c

Browse files
author
Ethan
committed
dev
1 parent 0cfb435 commit 171db5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Image.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static function resize($filename, $dstName, $maxWidth, $maxHeight)
5151

5252
//解决透明背景变成黑色
5353
$color = imagecolorallocate($dstImg, 255, 255, 255);
54-
imagecolortransparent($dstImg, $color);
54+
//imagecolortransparent($dstImg, $color);
5555
imagefill($dstImg, 0, 0, $color);
5656
imagealphablending($dstImg, true);
5757

0 commit comments

Comments
 (0)