开发者

Png background turns black after upload

When i am trying to upload a png image, after uploading the imag开发者_StackOverflow中文版es the transparent part of the image turns into black...

I would like to know howto fix this problem, any help will be highly appreciated and thanks in advance..

Regards

Shabir Gilkar


There's a lot of inconsistencies that can cause that. Check out imagecolortransparent and imagealphablending functions.

You can also do the upload raw without a filter, but there may be consequences of that (e.g. storing $_FILE directly without GD processing). If that is what you're doing, a bit more detail wouldn't hurt.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜