mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-02 07:25:45 -04:00
dist: Use Pillow to generate application icons.
This commit is contained in:
parent
dbe2a19bd6
commit
0d6bb9fc72
3 changed files with 40 additions and 8 deletions
11
dist/pillow-resize
vendored
Executable file
11
dist/pillow-resize
vendored
Executable 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])
|
Loading…
Add table
Add a link
Reference in a new issue