Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions doitphp/library/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ protected function _parseImageInfo($url) {

case 3:
$this->_image = imagecreatefrompng($url);
//bug fix #11 :透明背景的png需要使用imagesavealpha保存alpha通道才能不变成背景黑色
imagesavealpha($this->_image, true);
$this->_type = 'png';
break;

Expand Down