Skip to content

Instantly share code, notes, and snippets.

View pkeir's full-sized avatar

pkeir

View GitHub Profile
@pkeir
pkeir / simple-icons-png.sh
Created January 2, 2019 00:13
A script to download and scale svg icons from simple-icons.org, before converting them to png, and outputing a SassScript (CSS) fragment with background colour information
#!/bin/bash
# sudo apt-get install jq librsvg2-bin imagemagick
# Move each vector image to the origin, scale, and move it back again
# Outputs a SIZExSIZE transparent png
# Also outputs scss (Sassy CSS) fragments, unless "-q" is an input argument
SIZE=48
SCALE_FACTOR=0.65
ARGS=("$@")