ok risolto, semplicemente cosi
Codice PHP:
    function SaveProportionateImage($filename$quality$width){ 

        
$dest_width $width

        
$ratio $this->src_width $dest_width

        
$dest_image imagecreatetruecolor$this->src_height $ratio,$dest_width); 

        
imagecopyresampled($dest_image$this->src_image0000

            
$this->src_height $ratio

            
$this->src_width $ratio

            
$this->src_height

            
$this->src_width); 

        
imagejpeg($dest_image$filename.'.jpg'$quality); 

        
imagedestroy($dest_image); 

    }