public function output()
    {
        $imageFile = $this->storage->getPath($this);

        if(file_exists($imageFile))
        {
            header('Content-Type: image');
            header('Content-Length: ' . filesize($imageFile));

            readfile($imageFile);
            exit;
        }
    }
public function output()
    {
        $imageFile = $this->storage->getPath($this);

        if(file_exists($imageFile))
        {
            header('Content-Type: image');
            header('Content-Length: ' . filesize($imageFile));

            readfile($imageFile);
            exit;
        }
    }
public function output ( ) { $ imageFile = $ this -> storage -> getPath ( $ this ) ; if ( file_exists ( $ imageFile ) ) { header ( 'Content-Type: image' ) ; header ( 'Content-Length: ' . filesize ( $ imageFile ) ) ; readfile ( $ imageFile ) ; exit ; } }
Output the image to the browser
@return void
@exit
Output the image to the browser