Gimp.Vectors.export_to_string

function export_to_string(image: Gimp.Image, vectors: Gimp.Vectors): String {
    // Gjs wrapper for gimp_vectors_export_to_string()
}
  

Save a path as an SVG string.

This procedure works like Gimp.Vectors.export_to_file but creates a string rather than a file. The string is NULL-terminated and holds a complete XML document. Pass null as the 'vectors' argument to export all paths in the image.

Since 2.6

image

The image.

vectors

The vectors object to export, or null for all in the image.

Returns

A string whose contents are a complete SVG document. The returned value must be freed with g_free().