Tag Archives: GD

PHP: Generating transparent PNG fillers

So, I was fooling around the other day with an HTML table and wanted to make the odd rows slightly darker. Figured I could use for example an 80% transparent black PNG to do that (or could have just assigned a darker color, but where’s the fun in that?). Either way, ended up making a little something that I thought I could share just for the fun of it. I learned a few things, so maybe someone else can too 🙂

So, here’s how to make a small transparent PNG filler image on-the-fly using PHP 🙂

Continue reading PHP: Generating transparent PNG fillers