Extracting SVG HTML paths back to SVG files from a website
Asked Answered
T

2

13

Is there any way to quickly extract SVG assets on a website including SVG HTML paths back to SVG files. Any apps, dev tools, extensions that lets you do this?

Toback answered 7/1, 2018 at 11:47 Comment(0)
C
42

Given an svg element you'd like to save:

Edge

  1. Right Click > Save Picture As

Chrome, Firefox, etc.

  1. Inspect Element (Make sure you've selected the root svg element you'd like to save).
  2. Right Click > Edit as HTML
  3. Copy the outer HTML
  4. Paste in your favorite text editor (VS Code), and save as a .svg
Cymoid answered 7/1, 2018 at 11:58 Comment(1)
bonus step if you want a lighter optimized svg file:paste the markup in jakearchibald.github.io/svgomgTude
P
1

Alternatively, have a look at svg-path-editor.

Just copy-paste the d parameter from an HTML page and click "Downaload as SVG" button

Pushing answered 7/3 at 10:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.