Sprite-Unpacker is a sample CLI tool for processing a big sprites image to be multiple small pieces.
$ pip install sprite-unpacker
Options:
-i, --in FILE Path to image to be processed. [required]
-o, --out PATH Folder to images to export. [required]
-h, --height INTEGER Image height to be processed. [required]
-w, --weight INTEGER Image width to be processed. [required]
-p, --padding INTEGER Image padding to be processed. [required]
-m, --margin INTEGER Image margin to be processed. [required]
-n, --name TEXT Image file name pattern to be saved,
default=IMG(#).png, # will be replaced by image
index.
--help Show this message and exit.
sprite-unpacker -i example/images/128280.png -o example/processed_images/ -h 255 -w 255 -p 5 -m 5