src/Api/Api.php
public function run($source, array $params)
    {
        $image = $this->imageManager->make($source);

        foreach ($this->manipulators as $manipulator) {
            $manipulator->setParams($params);

            $image = $manipulator->run($image);
        }

        return $image->getEncoded();
    }
public function run($source, array $params)
    {
        $image = $this->imageManager->make($source);

        foreach ($this->manipulators as $manipulator) {
            $manipulator->setParams($params);

            $image = $manipulator->run($image);
        }

        return $image->getEncoded();
    }
public function run ( $ source , array $ params ) { $ image = $ this -> imageManager -> make ( $ source ) ; foreach ( $ this -> manipulators as $ manipulator ) { $ manipulator -> setParams ( $ params ) ; $ image = $ manipulator -> run ( $ image ) ; } return $ image -> getEncoded ( ) ; }
Perform image manipulations.
@param  string $source Source image binary data.
@param  array  $params The manipulation params.
@return string Manipulated image binary data.
Perform image manipulations .