function thumbjpg($imagem)
$img = ImageCreateFromJPEG($imagem);
$wi=ImageSX($img);
$he=ImageSY($img);
$img_wi=250;
$img_he=$he * 250 / $wi;
$destino = "fotos/thumb.jpg";
$img_nova = ImageCreateTrueColor ($img_wi,$img_he);
ImageCopyResampled ($img_nova, $img, 0, 0, 0, 0, $img_wi, $img_he, $wi, $he);
ImageJPEG($img_nova,$destino,100);
ImageDestroy($img_nova);
ImageDestroy($img);
return 1;
}
onde file eu recebo de um formulario em outra pagina..
$imagem = $_FILES["file"]["tmp_name"];
$thumb = thumbjpg($imagem)
mas o thumb não é criado e nem da erro nenhum, a tela fica em branco...
o q posso fazer...????
obs. o php do servidor é o 5.2
se alguem puder me ajudar valew...