ciao.. mi puoi aiutare? io eseguo questo script
header('Content-type: image/jpeg');
$maxx = 126;
$maxy = 126;
$source_image_URL = "../fotoutenti/$nickk/foto1.jpeg";
$source_image = imagecreatefromjpeg($source_image_URL);
list($width, $height) = getimagesize($source_image_URL);
$percent1 = $width / $maxx; //6,35
$percent2 = $height / $maxy; // 4,76
$percent = max($percent1,$percent2);
$new_eight = round($height/$percent);
$new_width = round($width/$percent);
$dest_image = imagecreatetruecolor($new_width,$new_eight);
imagecopyresampled ($dest_image,$source_image,0,0,0,0,$new_width,$new _eight,$width,$height);
ob_start();
imagejpeg($dest_image,"",50);
imagedestroy($dest_image);
imagedestroy($source_image);
ma mi escono i caratteri strani
Warning: Cannot modify header information - headers already sent by (output started at /web/htdocs/www.gayspace.it/home/profilo/profilo_foto3.php:124) in /web/htdocs/www.gayspace.it/home/profilo/profilo_foto3.php on line 209
ÿØÿàJFIFÿþ;CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 50 ÿÛC (1
#%(:3=<9387@H\N@DWE78PmQW_bghg>Mqypdx\egcÿÛC //cB8~T"ÿÄ ÿĵ
come posso fare?![]()