Skip to content
Advertisement

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

Advertisement

Answer

Using imagesavealpha() and a transparent bg color should do the trick…

Based on dfilkovi’s code:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement