4 ms·
Is there an easy way to generate SVG icons from image files (.png, .jpg, etc.)? Or are each of these SVG icons created by hand?
by everdev 9y ago
Is there an easy way to generate SVG icons from image files (.png, .jpg, etc.)? Or are each of these SVG icons created by hand?
- ficklepickle 9y agoI use vector magic on a Windows XP VM. I haven't been able to find a Linux/OSS tool that works as well.
- watersb 9y agoJust last night I was playing with Primitive [0], which tries to reproduce photographic images by building up layers of shapes. I found this via SQIP [1], was discussed on HN last week. I haven't tried this with line art like icons or logos. I usually just hand-optimize simple ones, then run them through svgo [2]. [0] https://github.com/fogleman/primitive https://github.com/fogleman/primitive [1] https://github.com/technopagan/sqip https://github.com/technopagan/sqip [2] https://github.com/jakearchibald/svgomg/blob/master/README.md https://github.com/jakearchibald/svgomg/blob/master/README.m...
- ekianjo 9y agoinkscape can generate them from bitmap formats.
- jankovicsandras 9y agoImageTracer is a simple raster image tracer and vectorizer that outputs SVG, 100% free, Public Domain. Available in JavaScript (works both in the browser and with Node.js), "desktop" Java and "Android" Java: https://github.com/jankovicsandras/imagetracerjs https://github.com/jankovicsandras/imagetracerjs https://github.com/jankovicsandras/imagetracerjava https://github.com/jankovicsandras/imagetracerjava https://github.com/jankovicsandras/imagetracerandroid https://github.com/jankovicsandras/imagetracerandroid You can use svgo to optimize the SVG afterwards: https://github.com/svg/svgo https://github.com/svg/svgo