Oye, tengo problemas para tratar de mantener la transparencia en un PNG cuando creo una miniatura, cualquier experiencia con esto? cualquier ayuda sería grande, esto es lo que estoy haciendo actualmente:PNG Transparencia con 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);
que lo rompió! ¡Muy agradecido! – BastardPrince
Esto no funciona para mí :( – 2by
+1 gracias, funcionó para mí –