public function display($type = 'jpeg')
    {
        $type = $this->getType($type);

        header('Content-Type: image/' . $type);

        if ($type === 'jpeg')
        {
            imageinterlace($this->newImage, true);
        }

        $imageFunc = 'image' . $type;
        $imageFunc($this->newImage);

        $this->destroyAll();

        return $this;
    }
public function display($type = 'jpeg')
    {
        $type = $this->getType($type);

        header('Content-Type: image/' . $type);

        if ($type === 'jpeg')
        {
            imageinterlace($this->newImage, true);
        }

        $imageFunc = 'image' . $type;
        $imageFunc($this->newImage);

        $this->destroyAll();

        return $this;
    }
public function display ( $ type = 'jpeg' ) { $ type = $ this -> getType ( $ type ) ; header ( 'Content-Type: image/' . $ type ) ; if ( $ type === 'jpeg' ) { imageinterlace ( $ this -> newImage , true ) ; } $ imageFunc = 'image' . $ type ; $ imageFunc ( $ this -> newImage ) ; $ this -> destroyAll ( ) ; return $ this ; }
Display on browser

@param string $type jpeg
@return $this
Display on browser