Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot load .svg to label to images
#6
(12-29-2023, 12:59 AM)Ofnuts Wrote:
(12-28-2023, 09:42 PM)Someone Wrote: GIMP 2.10.32 Python Console
Python 2.7.18 (default, Oct 27 2021, 07:49:35)  [GCC 11.2.0 64 bit (AMD64)]
➤> image = gimp.image_list()[0]
➤> pdb.gimp_vectors_import_from_file(image,"label.svg", False, False)
Traceback (most recent call last):
  File "<input>", line 1, in <module>
RuntimeError: No paths found in 'C:\Users\bhujl\label.svg'
➤> 

This means that label.svg doesn't appear to have meaning full content. I get this message if I use an empty SVG file:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="250" height="250">
<defs>
</defs>
</svg>

So what have you got in that file?

Ok, sweet, that was the clue i needed.

After saving as a simple .svg instead of an Inkscape .svg, culling the xml data, and simplifying the paths a bit i got it to load!
Reply


Messages In This Thread
Cannot load .svg to label to images - by Someone - 12-26-2023, 04:38 AM
RE: Cannot load .svg to label to images - by Someone - 12-30-2023, 11:38 PM

Forum Jump: