A Streamlit application that allows you to tile images into multiple segments and optionally compress them.
- Split images into a grid of tiles (e.g., 2x2, 3x3, etc.)
- Create separate image files for each tile
- Intelligent naming scheme for the output tiles
- Option to compress output images to 1024x1024 or 640x640 pixels
- Clone this repository
- Install the requirements:
pip install -r requirements.txt
-
Run the Streamlit app:
streamlit run app.py
-
Use the web interface to:
- Specify the input folder containing images
- Configure the tiling grid (rows and columns)
- Specify the output folder
- Enable/disable compression and select size
- Process the images
- For 2x2 grids:
filename_tl.ext
,filename_tr.ext
,filename_bl.ext
,filename_br.ext
(top-left, top-right, bottom-left, bottom-right) - For larger grids:
filename_r0c0.ext
,filename_r0c1.ext
, etc.
(row and column indices)
- Python 3.7+
- Streamlit
- Pillow (PIL)
- NumPy