src/Image/Inline.php
public function encode()
    {
        if (empty($this->image) === true) {
            throw new \RuntimeException('No source image has been specified.');
        }
        $str = '<img src="data:' . $this->mimeType . ';base64,' . base64_encode($this->image) . '"';
        if (empty($this->extraHtml) === false) {
            $str .= ' ' . trim($this->extraHtml);
        }
        $str .= ' />';
        return $str;
    }
public function encode()
    {
        if (empty($this->image) === true) {
            throw new \RuntimeException('No source image has been specified.');
        }
        $str = '<img src="data:' . $this->mimeType . ';base64,' . base64_encode($this->image) . '"';
        if (empty($this->extraHtml) === false) {
            $str .= ' ' . trim($this->extraHtml);
        }
        $str .= ' />';
        return $str;
    }
public function encode ( ) { if ( empty ( $ this -> image ) === true ) { throw new \ RuntimeException ( 'No source image has been specified.' ) ; } $ str = '<img src="data:' . $ this -> mimeType . ';base64,' . base64_encode ( $ this -> image ) . '"' ; if ( empty ( $ this -> extraHtml ) === false ) { $ str .= ' ' . trim ( $ this -> extraHtml ) ; } $ str .= ' />' ; return $ str ; }
Encode the current image as an inline IMG tag.

@return string The image encoded as an inline IMG tag.
Encode the current image as an inline IMG tag .