Punches out a grid from an image and renders the results.
- Python >= 3.0
- Clone this repo
- Install
pillow$ pip3 install pillow
usage: picpunch.py [-h] [-b BORDER] -i INPUT -o OUTPUT -x PIECES_X -y PIECES_Y
[-p PREFIX] [-q QUALITY]
Punches out a grid from an image and renders the results
optional arguments:
-h, --help show this help message and exit
-b BORDER, --border BORDER
cut off X% of the edges on every image (default: 0)
-i INPUT, --input INPUT
input image
-o OUTPUT, --output OUTPUT
output directory
-x PIECES_X, --pieces-x PIECES_X
the amount of pieces in the x-axis
-y PIECES_Y, --pieces-y PIECES_Y
the amount of pieces in the y-axis
-p PREFIX, --prefix PREFIX
the output file prefix (default: output-XXXX-Y.ZZZ)
-q QUALITY, --quality QUALITY
render quality in percent (default is 100 which means
lossless)
picpunch by Schluggi
$ ./picpunch.py -i grid.jpeg -o /tmp/output -x 4 -y 8$ ./picpunch.py -i grid.jpeg -o /tmp/output -x 7 -y 1 -q 30$ ./picpunch.py -i grid.jpeg -o /tmp/output -x 1 -y 1 -b 5Created and maintained by Schluggi.
