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.
精彩评论