Hej, masz problem z zachowaniem przezroczystości na png, gdy tworzę miniaturę, czy ktoś ma z tym jakieś doświadczenie? każda pomoc byłaby świetna, oto, co aktualnie robię:Przejrzystość PNG z PHP
$fileName= "../js/ajaxupload/tees/".$fileName;
list($width, $height) = getimagesize($fileName);
$newwidth = 257;
$newheight = 197;
$thumb = imagecreatetruecolor($newwidth, $newheight);
imagealphablending($thumb, true);
$source = imagecreatefrompng($fileName);
imagealphablending($source, true);
imagecopyresized($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);
imagesavealpha($thumb, true);
imagepng($thumb,$newFilename);
, który to pękł! bardzo zobowiązany! – BastardPrince
To nie działa dla mnie :( – 2by
+1 dziękuję, pracował dla mnie –