public function draw() {
        ob_start();
        imagejpeg($this->im, null, $this->quality);
        $bin = ob_get_contents();
        ob_end_clean();

        $this->setInternalProperties($bin);

        if (empty($this->filename)) {
            echo $bin;
        } else {
            file_put_contents($this->filename, $bin);
        }
    }
public function draw() {
        ob_start();
        imagejpeg($this->im, null, $this->quality);
        $bin = ob_get_contents();
        ob_end_clean();

        $this->setInternalProperties($bin);

        if (empty($this->filename)) {
            echo $bin;
        } else {
            file_put_contents($this->filename, $bin);
        }
    }
public function draw ( ) { ob_start ( ) ; imagejpeg ( $ this -> im , null , $ this -> quality ) ; $ bin = ob_get_contents ( ) ; ob_end_clean ( ) ; $ this -> setInternalProperties ( $ bin ) ; if ( empty ( $ this -> filename ) ) { echo $ bin ; } else { file_put_contents ( $ this -> filename , $ bin ) ; } }
Draws the JPG on the screen or in a file.
Draws the JPG on the screen or in a file .