Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I import custom SVG shapes into Dia?

Tags:

svg

dia

I haven't been able to import an SVG shape into Dia. It is expecting a .shape format (see http://dia-installer.de/howto/create_shape/index.html)

One solution is to export the Dia figure as SVG and edit it in Inkscape, but I'd really like to know how to import some SVG clipart directly into Dia.

like image 491
Gus Avatar asked Jan 10 '11 02:01

Gus


People also ask

How do I add shapes to DIA?

Creating a shape Just draw your shape in Dia like you draw a diagram. You can also use other tools such as Inkscape to draw your shape, save it in the SVG format and import it to Dia.

How do I import SVG into Drawio?

Insert SVG images into a diagram PrintDrag and drop the SVG image file from your computer onto the drawing canvas. Drag the URL of the SVG image from your browser onto the drawing canvas. Select Arrange > Insert > Image, then drag the diagram file or URL onto the dialog and click Apply.

Can I import SVG?

Using the File Import option: Click File > Import > Import to Stage, or Import to Library and select the SVG file. Drag and drop an SVG file directly on to the stage.


1 Answers

There is a way to import them but they lose quality as advanced transparency seems to be unsupported:

1) Drag and drop the SVG file into an empty drawing area.

2) Export it as .shape: File -> Export... Then select "By extension" and save the file as .shape. Then a dialog will appear. Choose the default size in there.

3) Import it: F9 -> NEW -> SVG Shape (select the file)

That's it. If you want to import more advanced drawings, I suggest you to try different formats, for example, PNG are imported really nicely (but of course are not vectors).

Hope it helps (and I hope DIA team implements more advanced SVG support).

like image 166
lepe Avatar answered Sep 19 '22 03:09

lepe