src/Nodes/Embedded/SVGImage.php
public static function fromString(
        $imageContent,
        $mimeType,
        $x = null,
        $y = null,
        $width = null,
        $height = null
    ) {
        return new self(
            sprintf(
                'data:%s;base64,%s',
                $mimeType,
                base64_encode($imageContent)
            ),
            $x,
            $y,
            $width,
            $height
        );
    }
public static function fromString(
        $imageContent,
        $mimeType,
        $x = null,
        $y = null,
        $width = null,
        $height = null
    ) {
        return new self(
            sprintf(
                'data:%s;base64,%s',
                $mimeType,
                base64_encode($imageContent)
            ),
            $x,
            $y,
            $width,
            $height
        );
    }
public static function fromString ( $ imageContent , $ mimeType , $ x = null , $ y = null , $ width = null , $ height = null ) { return new self ( sprintf ( 'data:%s;base64,%s' , $ mimeType , base64_encode ( $ imageContent ) ) , $ x , $ y , $ width , $ height ) ; }
Creates a new SVGImage directly from a raw binary image string

@param string     $imageContent
@param string     $mimeType
@param float|null $x
@param float|null $y
@param float|null $width
@param float|null $height

@return self
Creates a new SVGImage directly from a raw binary image string