52# fpassthru($fp); 53# } 54# 55# public function ResizeImagen($from, $to, $width, $height) 56# { 57# $size = @getimagesize($from); 58# 59# if($width && !$height) 60# {61# $wpct = $width / $size[0];62# $height = round($size[1]*$wpct); 63# } 64# elseif(!$width && $height) 65# { 66# $hpct = $height / $size[1]; 67# $width = round($size[0]*$hpct); 68# } 69# 70# $thumb = $this->resize($from, $width, $height); 71#