public function process(TemplateInterface $template)
    {
        // Create a new intervention image object
        $image = $this->imageManager->make($this->image);

        $image = $template->process($image);

        // Encode the image if it hasn't
        // been encoded in the template.
        if (!$image->isEncoded()) {
            $image->encode();
        }

        return $image;
    }
public function process(TemplateInterface $template)
    {
        // Create a new intervention image object
        $image = $this->imageManager->make($this->image);

        $image = $template->process($image);

        // Encode the image if it hasn't
        // been encoded in the template.
        if (!$image->isEncoded()) {
            $image->encode();
        }

        return $image;
    }
public function process ( TemplateInterface $ template ) { // Create a new intervention image object $ image = $ this -> imageManager -> make ( $ this -> image ) ; $ image = $ template -> process ( $ image ) ; // Encode the image if it hasn't // been encoded in the template. if ( ! $ image -> isEncoded ( ) ) { $ image -> encode ( ) ; } return $ image ; }
Run the named template against the image.

@param string $template The template to run

@return Intervention\Image\Image The processed image
Run the named template against the image .