Ver original$transparente = imagecolorallocate($img, 255, 255, 255);imagefill($img, 0, 0, $transparente);imagecolortransparent($img, $transparente);