public function resizePercent($percent = 50)
    {
        if ( $percent < 1)
        {
            throw new \InvalidArgumentException('percent must be >= 1');
        }

        $this->resize($this->source['width'] * ($percent / 100), $this->source['height'] * ($percent / 100));

        return $this;
    }
public function resizePercent($percent = 50)
    {
        if ( $percent < 1)
        {
            throw new \InvalidArgumentException('percent must be >= 1');
        }

        $this->resize($this->source['width'] * ($percent / 100), $this->source['height'] * ($percent / 100));

        return $this;
    }
public function resizePercent ( $ percent = 50 ) { if ( $ percent < 1 ) { throw new \ InvalidArgumentException ( 'percent must be >= 1' ) ; } $ this -> resize ( $ this -> source [ 'width' ] * ( $ percent / 100 ) , $ this -> source [ 'height' ] * ( $ percent / 100 ) ) ; return $ this ; }
Image resize by percent

@param int $percent 50
@return $this
Image resize by percent