$pocz = "../img/przeciwnicy/"; $file = "krolik.gif"; $kolorbialy = imagecolorallocate ($file, 255, 255, 255); imagecolortransparent ($file, $kolorbialy); imagegif ($file, $pocz);
Czy możecie pomóc?
PS: Cały skrypt jest większy, ale dla testów dałem tylko ten mały. Niżej daję cały:
$pocz = "../img/przeciwnicy/"; if ($file != "." && $file != ".."){ if($ros[$ostros] == "gif" || $ros[$ostros] == "png"){ $kolorbialy = imagecolorallocate ($file, 255, 255, 255); imagecolortransparent ($file, $kolorbialy); if ($ros[$ostros] == "gif") imagegif ($file, $pocz); else imagepng ($file, $pocz); } } } }