public function execute($image)
    {
        $format = $this->argument(0)->value();
        $quality = $this->argument(1)->between(0, 100)->value();

        $response = new Response($image, $format, $quality);

        $this->setOutput($response->make());

        return true;
    }
public function execute($image)
    {
        $format = $this->argument(0)->value();
        $quality = $this->argument(1)->between(0, 100)->value();

        $response = new Response($image, $format, $quality);

        $this->setOutput($response->make());

        return true;
    }
public function execute ( $ image ) { $ format = $ this -> argument ( 0 ) -> value ( ) ; $ quality = $ this -> argument ( 1 ) -> between ( 0 , 100 ) -> value ( ) ; $ response = new Response ( $ image , $ format , $ quality ) ; $ this -> setOutput ( $ response -> make ( ) ) ; return true ; }
Builds HTTP response from given image

@param  \Intervention\Image\Image $image
@return boolean
Builds HTTP response from given image