Well, as I am not into the GD Libary and Image functions in PHP I am a bit stuck… In fact, the same function has no Problems with creating JPEG images from the uploaded files – but it’s stuck on png… All I get is a 33 byte file with the right filename and destination – of course the original image exists and is uploaded just fine…
$altesBild=ImageCreateFromPNG("$PicPathIn"."$bild");
$neuesBild=imagecreatetruecolor(300,$neueHoehe);
$neuesBildHeader=imagecreatetruecolor(966,$neueHoeheHeader);
imagecopyresampled($neuesBild,$altesBild,0,0,0,0,300,$neueHoehe,$breite,$hoehe);
imagecopyresampled($neuesBildHeader,$altesBild,0,0,0,0,966,$neueHoeheHeader,$breite,$hoehe);
ImagePNG($neuesBild,"$PicPathOut"."/thumbs/thumb_"."$bild",80);
ImagePNG($neuesBildHeader,"$PicPathOut"."/header/header_"."$bild",80);
Try using a compression value between 0 and 9, as stated in the doc of the
ImagePNGfunction.