public function batchProcess($output = null, $operations = [], $imagineOptions = []) {
		foreach ($operations as $operation => $params) {
			if (method_exists($this, $operation)) {
				$this->{$operation}($params);
			} else {
				throw new \BadMethodCallException(sprintf('Unsupported image operation %s!', $operation));
			}
		}

		if ($output === null) {
			return $this->_image;
			$this->_image = null;
		}

		return $this->save($output, $imagineOptions);
	}
public function batchProcess($output = null, $operations = [], $imagineOptions = []) {
		foreach ($operations as $operation => $params) {
			if (method_exists($this, $operation)) {
				$this->{$operation}($params);
			} else {
				throw new \BadMethodCallException(sprintf('Unsupported image operation %s!', $operation));
			}
		}

		if ($output === null) {
			return $this->_image;
			$this->_image = null;
		}

		return $this->save($output, $imagineOptions);
	}
public function batchProcess ( $ output = null , $ operations = [ ] , $ imagineOptions = [ ] ) { foreach ( $ operations as $ operation => $ params ) { if ( method_exists ( $ this , $ operation ) ) { $ this -> { $ operation } ( $ params ) ; } else { throw new \ BadMethodCallException ( sprintf ( 'Unsupported image operation %s!' , $ operation ) ) ; } } if ( $ output === null ) { return $ this -> _image ; $ this -> _image = null ; } return $ this -> save ( $ output , $ imagineOptions ) ; }
Loads an image and applies operations on it

Caching and taking care of the file storage is NOT the purpose of this method!

@param null $output
@param array $imagineOptions
@param array $operations
@throws \BadMethodCallException
@internal param string $image source image path
@internal param $mixed
@internal param \Imagine $array image objects save() 2nd parameter options
@return bool
Loads an image and applies operations on it