Upload png [error] preto
Galera eu tenho o upload e o mesmo funciona perfeitamente JPG, porém preciso que funciona o PNG, quando coloco o código fica preto o que devo fazer?
o meu JPG está assim:
$thumb_destino = imagecreatetruecolor($width_end_thumb, $height_end_thumb);
$large_destino = imagecreatetruecolor($width_end_large, $height_end_large);
$imagem_fonte = imagecreatefromjpeg($destino.$nome);
imagecopyresampled($thumb_destino, $imagem_fonte, 0, 0, 0, 0, $width_end_thumb, $height_end_thumb, $width_init, $height_init);
imagecopyresampled($large_destino, $imagem_fonte, 0, 0, 0, 0, $width_end_large, $height_end_large, $width_init, $height_init);
como devo fazer o PNG com esses nomes?
agradecido!Discussão (1)
Carregando comentários...