Repository navigation
LocalBG v1.1.3
What's new
Added
Margin (Pro)
New setting that adds empty space around the cut-out object, expressed as a percentage of the image. The object is scaled to fill (100 - 2 × margin)% of the canvas and centred, so e.g. 10% leaves 10% breathing room on every side. Ideal for consistent product framing in e-commerce. CLI: --margin 0-45.
Pipeline order is now: remove background, centre, margin, resize.
Changed
Resize now fits instead of cropping
The cut-out is scaled to fit inside the target size and centred, and is never cropped. Images smaller than the target are padded with transparency (no upscaling); the anchor is always the centre. A Blur background is treated as a full-frame photo and uses cover-fill instead, so it has no transparent bars. Applies to both the app and the CLI.
Settings are captured when you press Start
Changing any control while a batch is processing no longer affects the files currently being processed. The new value takes effect the next time you press Start. All controls stay fully editable during a run.
Blur background hides inapplicable controls
The Center object and Margin controls are hidden while the Blur background is selected, since neither has any effect in that mode.
Sticker border renamed: "Margin" to "Thickness"
The sticker border-size control is now labelled Thickness for clarity. It sets the outline width, not a margin.
Fixed
macOS: app crashed silently on Start
The background-removal backend loaded a third-party library at import time whose native initialisation segfaults in the packaged macOS build. Fixed by loading it lazily, only when explicitly needed (which the app never does in normal use). Edge despill was reimplemented in pure numpy as a faithful port of the original algorithm. Neither pressing Start nor using despill triggers the problematic code anymore.
Linux AppImage failed to launch on some machines
Some machines reported usr/bin/LocalBG: No such file or directory. The launcher now correctly locates the standalone binary, and the build fails loudly if the app binary is missing so a broken package can never ship.