Skip to content

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

@Toby108

Description

@Toby108

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions