public function crop(array $options = []) {
		if (empty($options['height']) || empty($options['width'])) {
			throw new \InvalidArgumentException('You have to pass height and width in the options!');
		}

		$defaults = [
			'cropX' => 0,
			'cropY' => 0
		];

		$options = array_merge($defaults, $options);

		$this->_image->crop(
			new Point($options['cropX'], $options['cropY']),
			new Box($options['width'], $options['height'])
		);
		return $this;
	}
public function crop(array $options = []) {
		if (empty($options['height']) || empty($options['width'])) {
			throw new \InvalidArgumentException('You have to pass height and width in the options!');
		}

		$defaults = [
			'cropX' => 0,
			'cropY' => 0
		];

		$options = array_merge($defaults, $options);

		$this->_image->crop(
			new Point($options['cropX'], $options['cropY']),
			new Box($options['width'], $options['height'])
		);
		return $this;
	}
public function crop ( array $ options = [ ] ) { if ( empty ( $ options [ 'height' ] ) || empty ( $ options [ 'width' ] ) ) { throw new \ InvalidArgumentException ( 'You have to pass height and width in the options!' ) ; } $ defaults = [ 'cropX' => 0 , 'cropY' => 0 ] ; $ options = array_merge ( $ defaults , $ options ) ; $ this -> _image -> crop ( new Point ( $ options [ 'cropX' ] , $ options [ 'cropY' ] ) , new Box ( $ options [ 'width' ] , $ options [ 'height' ] ) ) ; return $ this ; }
Wrapper for Imagines crop

@param array Array of options for processing the image
@throws \InvalidArgumentException
@return $this
Wrapper for Imagines crop