# Gimp.Vectors.import_from_file

    function import_from_file(image: Gimp.Image, file: Gio.File, merge: Boolean, scale: Boolean): [ok: Boolean, vectors: Array(Gimp.Vectors)] {
        // Gjs wrapper for gimp_vectors_import_from_file()
    }

Import paths from an SVG file.

This procedure imports paths from an SVG file. SVG elements other than paths and basic shapes are ignored.

Since 2.4

image

  The image.

file

  The SVG file to import.

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.