This script takes images and uses transparent pixel grids in order to seperate each object into smaller files. A test image is included in order to see how this script works.
This package needs Pillow which can be done through:
pip install Pillow
To install:
pip install slicer-img
cd {main folder}
slice {path to image file} {format}
Uses test.png and outputs in default png format
slice test.png
To specify a different format, type the format like below
slice test.png jpg
This format works too
slice test.png .jpg