Skip to content

Instantly share code, notes, and snippets.

View rsalunga29's full-sized avatar

Roland Emmanuel Salunga rsalunga29

View GitHub Profile
@rsalunga29
rsalunga29 / pngtosvg.py
Last active September 19, 2019 16:36
Batch Convert PNG to SVG (Use Python 2.7 to run)
import os
def main():
startSvgTag = """<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="240px" height="240px" viewBox="0 0 240 240">"""