Inkscape.org
Beginners' Questions Dismantle an SVG sprite
  1. #1
    meetdilip meetdilip @meetdilip

    I have an SVG sprite with a lot of icons ( please find attached). I want to convert it to a symbol set. For that, I need to convert them into individual SVGs ? Is there any other way to use this sprite as symbols inside Inkscape ? Thanks.

  2. #2
    Tyler Durden Tyler Durden @TylerDurden

    I'd open the file in Inkscape and use the symbols panel to convert the icons to symbols.

    I'd save the file as gnome_stencils.svg and place it in the symbols folder of my user profile. Then I'd have the icons to use as symbols in any document.

     

    Have a nice day. 

    TD

  3. #3
    meetdilip meetdilip @meetdilip

    Nice idea.

    Since there are too many icons, it would take a lot of time. Is there any way to batch add the icons into the " Current Document " area ?

    Also, any web service or CLI which can extracts icons out of sprite ? Thanks.

     

  4. #4
    Tyler Durden Tyler Durden @TylerDurden

    You could make or request an extension that would copy the labels to the IDs and load objects into the symbols panel. That would be handy.

    It's far from automatic, but if it takes a second to click on an icon and click on the symbol button, it would take ~10-15 min. to process manually. (Just to load, not also rename.)

  5. #5
    meetdilip meetdilip @meetdilip

    I am doing it manually now. I found a lot of tools which can create sprites in a second. But none to dismantle it. The problem is, it is really hard on the eyes.