I\'m pretty sure I need to use imagefilledrectangle in order to get a white background instead of black on this... just not sure how. I\'ve tried a few ways.
UPDATE (2020): Please see this answer below for a faster fill than imagefill: https://stackoverflow.com/a/32580839/1005039
ORIGINAL
From the PHP manual entry for imagefill:
$image = imagecreatetruecolor(100, 100);
// set background to white
$white = imagecolorallocate($image, 255, 255, 255);
imagefill($image, 0, 0, $white);