# Gimp.Vectors.import_from_string

    function import_from_string(image: Gimp.Image, string: String, length: Number(gint), merge: Boolean, scale: Boolean): [ok: Boolean, vectors: Array(Gimp.Vectors)] {
        // Gjs wrapper for gimp_vectors_import_from_string()
    }

Import paths from an SVG string.

This procedure works like Gimp.Vectors.import_from_file but takes a string rather than reading the SVG from a file. This allows you to write scripts that generate SVG and feed it to GIMP.

Since 2.4

image

  The image.

string

  A string that must be a complete and valid SVG document.

length

  Number of bytes in string or -1 if the string is NULL terminated.

merge

  Merge paths into a single vectors object.

scale

  Scale the SVG to image dimensions.

ok

  TRUE on success.

vectors

  The list of newly created vectors.