svg2android
svg2android copied to clipboard
Add NodeJS support
automate svg2android from CLI
This would be awesome
There's support for drag & drop multiple svg at once.
Yeah sure, but kind of inconvenient for several hundred icons multiple times. Having it part of a build script would be handy.
:+1:
I will appreciate If someone could implement this - I do not plan implementing this feature. After research this would need a huge code rewrite.
:+1:
I would love to pick this up, if you could provide some hints on how to get started since I am a Javscript newbie here :)
@bhargavms: it seems as though the main method is generateCode. It seems to also need flatten.js and svg_shape_converter.js (and jQuery for the xml parsing). You would also need some way to set the command-line arguments that are offered by the web interface, f.ex.bakeTransforms (look for localStorage). @yuraj11 : thanks for the SW, it was the only one that worked for me. Please have a look at the outline and correct if anything is wrong or could be done better.
Summary:
simple:
- read svg from command line to data structure (from stdin, file name, pick one)
- apply generateCode, see which methods etc are needed
- write result to output (stdout, file, pick one)
enhanced:
- options as set via web interface
- i/o options
- ? anything else ?