Spaces:
Sleeping
Sleeping
File size: 1,436 Bytes
b5341f3 e71489e b5341f3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | ---
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
1. Upload two images (supports TIF, FITS, PNG, JPG, BMP)
2. Adjust the difference threshold in the sidebar
3. If sizes differ, choose a scaling method and which image to resize
4. View results: difference image, binary mask, colored overlay
5. Download any output using the download buttons at the bottom
## Running Locally
```bash
pip install -r requirements.txt
streamlit run app.py
```
|