mirror of
https://github.com/freedoom/freedoom.git
synced 2025-08-30 08:16:54 -04:00
12 lines
297 B
Python
Executable file
12 lines
297 B
Python
Executable file
#!/usr/bin/env python3
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
# 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])
|