$image = imagecreatetruecolor($imgWidth, $imgHeight); $white = imagecolorallocate($image, 255, 255, 255); imagefill($image, 0, 0, $white);