Skip to content

Instantly share code, notes, and snippets.

@kostimarko
Created August 17, 2019 21:22
Show Gist options
  • Save kostimarko/79bbff5c21d04beecd61de653976394e to your computer and use it in GitHub Desktop.
Save kostimarko/79bbff5c21d04beecd61de653976394e to your computer and use it in GitHub Desktop.
function getSVGOptions(){
var exportOpts = new ExportOptionsSVG();
return exportOpts;
}
@hasteagag
Copy link

Hey thank you for your script! But a couple notes (bc I didnt want to setup an account on medium), this snippet is missing from https://medium.com/swlh/how-to-batch-export-hundreds-of-illustrator-files-to-svg-149ae3b8f550

I needed a simpler version just to save a bunch of ai and ps and eps and pdf to svg but this was very helpful. I would just note its I think a better idea to pop this into the init, there's not a likely scenario in that loop where you will be needing this again, so that adds like three lines and calls this many times, whereas you could have just called it once before the loop right inside the init(), just my suggestion, but thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment