Back to Tools

eCommerce Image Centering Tool

Use cases

Standardising product photos for marketplaces Adding consistent padding and backgrounds Correcting off-center product shots Batch processing catalog images

Uses OpenCV cascading thresholding (240, 200, Adaptive Gaussian 21×21, Otsu) with morphological operations (5×5 kernel closing/opening) to detect product subjects.

Centers by finding bounding box of all contours above 0.5% image area.

Supports batch processing with ZIP export, manual offset adjustments, and configurable output sizes.

Streamlit App

Platform

Browser-based (no installation required)

Input

Product images

Output size and background settings

Output

Centered product images (ZIP for batch)

Launch App View Source

Features

  • Cascading threshold detection (240, 200, Adaptive, Otsu)
  • Morphological cleanup with 5×5 kernels
  • Output sizes: 600×600, 800×800, 1000×1000, or custom
  • Padding 0-30% with hex color picker
  • Manual horizontal/vertical offset (±100px)
  • JPEG/WEBP export with batch ZIP download

How to use

  1. 1 Upload product images (batch supported)
  2. 2 Select output size and format (JPEG/WEBP)
  3. 3 Configure padding and background color
  4. 4 Preview detection with debug visualisation
  5. 5 Adjust manual offsets if needed
  6. 6 Download individual images or batch ZIP

Let's work together

Monthly retainers or one-off projects. No lengthy reports that sit in a drawer.

Let's Talk