StripeOff — a simple application for removing empty (white or transparent) borders from images. Drag and drop files or a folder — the program will process everything automatically.
- Drag-and-drop interface
- Folder support (recursive processing of all images)
- Transparent PNG support (alpha channel preserved on output)
- Localization: Russian and English
- Processing history with progress display
- Supported formats: PNG, JPG, JPEG, BMP, WebP
The app uses OpenCV and NumPy to detect and remove empty borders:
- Empty pixel detection — a pixel is considered empty if it is transparent (alpha ≤ 5) or white (all RGB channels ≥ 250)
- Border scanning — the algorithm builds a 2D mask and finds the first and last non-empty rows and columns
- Minimum threshold — borders narrower than 5 pixels are ignored to avoid false positives
- Cropping — the image is cropped to the detected content boundaries, preserving the alpha channel for PNG/WebP
This approach is fast and works well with scanned documents, screenshots, images with uniform white margins, and PNG exports with transparent padding (Figma, Photoshop, etc.).
- Run
remove_borders_app.py - Drag images or a folder into the program window
- Processed files are saved next to the originals with the
_croppedsuffix
Download StripeOff_Setup_1.0.0.exe from Releases and run it. The installer will create shortcuts on the desktop and in the Start menu.
Download StripeOff.exe from Releases — runs without installation.
Requires Python 3.9+
pip install -r requirements.txt
python remove_borders_app.py
pip install pyinstaller
pyinstaller StripeOff.spec
Requires Inno Setup 6.
build_installer.bat
Output:
dist/StripeOff.exe— portable versiondist/StripeOff_Setup_1.0.0.exe— installer

