public function getResponse($template, $filename)
    {
        switch (strtolower($template)) {
            case 'original':
                return $this->getOriginal($filename);

            case 'download':
                return $this->getDownload($filename);

            default:
                return $this->getImage($template, $filename);
        }
    }
public function getResponse($template, $filename)
    {
        switch (strtolower($template)) {
            case 'original':
                return $this->getOriginal($filename);

            case 'download':
                return $this->getDownload($filename);

            default:
                return $this->getImage($template, $filename);
        }
    }
public function getResponse ( $ template , $ filename ) { switch ( strtolower ( $ template ) ) { case 'original' : return $ this -> getOriginal ( $ filename ) ; case 'download' : return $ this -> getDownload ( $ filename ) ; default : return $ this -> getImage ( $ template , $ filename ) ; } }
Get HTTP response of either original image file or
template applied file.

@param  string $template
@param  string $filename
@return Illuminate\Http\Response
Get HTTP response of either original image file or template applied file .