ho fatto uno script che dovrebbe ridimensionare e visualizzare delle immagini salvate in campo blob di mysql, ma purtroppo mi da errore in quanto non riesce a trovare il file da ridimensionare

codice:
... getimagesize(˙Ĝ˙à): failed to open stream: No such file or directory in ...
il codice è questo


codice:
	$tmp_name = $row['immagine'];

	list( $width, $height, $type ) = getimagesize( $tmp_name );
	$new_width = 50;
	$new_height = $height / $width * $new_width;
	if ($type == 1)
		$src_img = imagecreatefromgif( $tmp_name );
	if ($type == 2)
		$src_img = imagecreatefromjpeg( $tmp_name );
	elseif ($type == 3)
		$src_img = imagecreatefrompng( $tmp_name );	
	$im = Imagecreatetruecolor( $new_width, $new_height );
	imagecopyresampled( $im, $src_img, 0, 0, 0, 0, $new_width, $new_height, $width, $height);
	ob_start();
	imagejpeg( $im );
	imagedestroy( $im );
	$data = ob_get_clean();
	$data = addslashes( $data );
}





header('Content-Type: image/jpeg');
echo  $data;