dist: Use Pillow to generate application icons.

This commit is contained in:
Mike Swanson 2017-07-31 16:41:07 -07:00
parent dbe2a19bd6
commit 0d6bb9fc72
3 changed files with 40 additions and 8 deletions

11
dist/pillow-resize vendored Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env python
# Simple and dumb Pillow-based resizer
# Usage: pillow-resize src-img.png dst-img.png WIDTH HEIGHT
import sys
from PIL import Image
img = Image.open(sys.argv[1])
img.thumbnail((int(sys.argv[3]), int(sys.argv[4])))
img.save(sys.argv[2])