Spaces:
Sleeping
Sleeping
A newer version of the Streamlit SDK is available: 1.59.2
metadata
title: Image File Compare
emoji: π
colorFrom: blue
colorTo: purple
sdk: streamlit
sdk_version: 1.36.0
app_file: app.py
pinned: false
license: mit
π Image File Compare
A web-based tool for comparing two images with threshold-based difference detection.
Features
- Multi-format support β TIFF, FITS, PNG, JPG, BMP
- Threshold control β Adjustable slider to filter noise and focus on meaningful differences
- Auto-scaling β When image sizes differ, automatically scales one to match (configurable method)
- Multiple scaling algorithms β Nearest, Bilinear, Bicubic, Lanczos, Area
- Difference visualization:
- Actual difference image (with optional amplification)
- Binary mask (white = pixels exceeding threshold)
- Colored overlay (red = differences)
- Overlay blended on original image
- Download outputs β All result images downloadable as PNG or TIFF
- Statistics β Pixel count, percentage, max/mean difference values
Usage
- Upload two images (supports TIF, FITS, PNG, JPG, BMP)
- Adjust the difference threshold in the sidebar
- If sizes differ, choose a scaling method and which image to resize
- View results: difference image, binary mask, colored overlay
- Download any output using the download buttons at the bottom
Running Locally
pip install -r requirements.txt
streamlit run app.py