Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

png透明图片生成缩略图,背景如何变成透明 #9

Open
Toby108 opened this issue Apr 11, 2018 · 0 comments
Open

png透明图片生成缩略图,背景如何变成透明 #9

Toby108 opened this issue Apr 11, 2018 · 0 comments

Comments

@Toby108
Copy link

Toby108 commented Apr 11, 2018

Image.php文件,第266 267行,改为以下代码可达到目的
$alpha = imagecolorallocatealpha($img, 0, 0, 0, 127);
imagefill($img, 0, 0, $alpha);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant