Skip to content

AI-Ecology-Lab/tile-images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Tiling App

A Streamlit application that allows you to tile images into multiple segments and optionally compress them.

Features

  • 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

Installation

  1. Clone this repository
  2. Install the requirements:
    pip install -r requirements.txt
    

Usage

  1. Run the Streamlit app:

    streamlit run app.py
    
  2. 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

Naming Scheme

  • 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)

Requirements

  • Python 3.7+
  • Streamlit
  • Pillow (PIL)
  • NumPy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages