public function resize($width, $height) {
        if (!$width) $width = 1;
        if (!$height) $height = 1;
        return (
            (false !== ($img = new gd(array($width, $height)))) &&
            $img->imagecopyresampled($this) &&
            (false !== ($this->image = $img->get_image())) &&
            (false !== ($this->width = $img->get_width())) &&
            (false !== ($this->height = $img->get_height()))
        );
    }
public function resize($width, $height) {
        if (!$width) $width = 1;
        if (!$height) $height = 1;
        return (
            (false !== ($img = new gd(array($width, $height)))) &&
            $img->imagecopyresampled($this) &&
            (false !== ($this->image = $img->get_image())) &&
            (false !== ($this->width = $img->get_width())) &&
            (false !== ($this->height = $img->get_height()))
        );
    }
public function resize ( $ width , $ height ) { if ( ! $ width ) $ width = 1 ; if ( ! $ height ) $ height = 1 ; return ( ( false !== ( $ img = new gd ( array ( $ width , $ height ) ) ) ) && $ img -> imagecopyresampled ( $ this ) && ( false !== ( $ this -> image = $ img -> get_image ( ) ) ) && ( false !== ( $ this -> width = $ img -> get_width ( ) ) ) && ( false !== ( $ this -> height = $ img -> get_height ( ) ) ) ) ; }
Resize image. Returns TRUE on success or FALSE on failure
@param integer $width
@param integer $height
@return bool
Resize image . Returns TRUE on success or FALSE on failure