Hallo EisFuX,
vielen Dank für Deine Antwort.
Ich habs jetzt so versucht:
$img = imagecreatefrompng($imgPath.'nordpfeil.png');
$white = imagecolorallocate($img ,255,255,255);
$colorTransparent = imagecolortransparent($img , $white);
$rotate = imagerotate($img , $rotation, $colorTransparent);
imagepng($rotate, $imgPath.'nordpfeil_neu.png');
Leider wird der Hintergund weiss und nicht transparent :-(
Kannst Du mir noch ein wenig weiter helfen?
Paul