$blanco = imageColorallocate($resurce, 255, 255, 255); $transparente = imageColorTransparent($resurce, $blanco);