Originariamente inviato da pugia
Codice PHP:
//creazione della thumbnail
$path "$abpath/$img2_name";
$pat_def "$abpath/$thumb";
$abc imagecreatefromPNG($path);
$def imagecreate(80$hgth);
imagecopyresampled($def$abc000080$hgth$wd$hg);
imagepng($def$pat_def);
ImageDestroy($abc);
ImageDestroy($def); 
prova, al posto di imagecreate(), ad utilizzare imagecreatetruecolor()

ed a vedere se ti va bene