public function _resize(bool $maintainRatio = false)
	{
		$source      = ! empty($this->resource) ? $this->resource : $this->image->getPathname();
		$destination = $this->getResourcePath();

		$escape = '\\';
		if (stripos(PHP_OS, 'WIN') === 0)
		{
			$escape = '';
		}

		$action = $maintainRatio === true ? ' -resize ' . $this->width . 'x' . $this->height . ' "' . $source . '" "' . $destination . '"' : ' -resize ' . $this->width . 'x' . $this->height . "{$escape}! \"" . $source . '" "' . $destination . '"';

		$this->process($action);

		return $this;
	}
public function _resize(bool $maintainRatio = false)
	{
		$source      = ! empty($this->resource) ? $this->resource : $this->image->getPathname();
		$destination = $this->getResourcePath();

		$escape = '\\';
		if (stripos(PHP_OS, 'WIN') === 0)
		{
			$escape = '';
		}

		$action = $maintainRatio === true ? ' -resize ' . $this->width . 'x' . $this->height . ' "' . $source . '" "' . $destination . '"' : ' -resize ' . $this->width . 'x' . $this->height . "{$escape}! \"" . $source . '" "' . $destination . '"';

		$this->process($action);

		return $this;
	}
public function _resize ( bool $ maintainRatio = false ) { $ source = ! empty ( $ this -> resource ) ? $ this -> resource : $ this -> image -> getPathname ( ) ; $ destination = $ this -> getResourcePath ( ) ; $ escape = '\\' ; if ( stripos ( PHP_OS , 'WIN' ) === 0 ) { $ escape = '' ; } $ action = $ maintainRatio === true ? ' -resize ' . $ this -> width . 'x' . $ this -> height . ' "' . $ source . '" "' . $ destination . '"' : ' -resize ' . $ this -> width . 'x' . $ this -> height . "{$escape}! \"" . $ source . '" "' . $ destination . '"' ; $ this -> process ( $ action ) ; return $ this ; }
Handles the actual resizing of the image.

@param boolean $maintainRatio

@return ImageMagickHandler
@throws \Exception
Handles the actual resizing of the image .