Php - replace base color of transparent png image

前端 未结 6 2032
栀梦
栀梦 2020-12-28 09:35

I have searched a lot and I found only few solutions (on google and stackoverflow so please don\'t mark this one as a duplicate unless there\'s really duplicate question), b

6条回答
  •  情深已故
    2020-12-28 09:52

    The third image doesn't look fine, because imagetruecolortopalette($im,true, 255); renders an ugly image:

    enter image description here

    Since the second image doesn't look fine, the third can't look beautiful too.

    Code:

    
    
    Original
    
    
    After make truecolortopalette($im,true, 255);
    Thus..

提交回复
热议问题