FileCompare / README.md
AK51's picture
Upload 3 files
e71489e verified
|
Raw
History Blame Contribute Delete
1.44 kB

A newer version of the Streamlit SDK is available: 1.59.2

Upgrade
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

  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

pip install -r requirements.txt
streamlit run app.py