Skip to content
Advertisement

Tag: gd

PHP gdLib 8-Bit PNG with alpha

how is it possible to save my image, created with gd, as an png-8? it saves as gif with transparent channel well – but I want to use png-8. Best Regards, Beerweasle Answer Using imagesavealpha() and a transparent bg color should do the trick… Based on dfilkovi’s code:

Advertisement