afreiday/php-waveform-png — Issue #3: Rendering foreground as transparent
Author: gordyr
Created: 2012-01-04 00:13:05+00:00
State: open

In the current script it is simple to render the background as transparent.

However, in order to give the waveform a 'gradient' appearance it would be necessary to render the foreground itself as transparent, use a coloured background and then overlay the png on top of a div with a css gradient applied.

Despite my best attempts I have been unable to get this to work. I have tried using:

imagecolorallocatealpha($img, 0, 0, 0, 127)

to render the line but without any success.

Any ideas?