Skip to content

Releases: privatenumber/unbg

Release list

v1.1.0

Choose a tag to compare

@privatenumber privatenumber released this 31 Aug 04:46
d435af3

1.1.0 (2026-08-31)

Features

  • add automatic content cropping (#3) (3943000)
  • web: add crop controls and diagnostics (#5) (d435af3)
  • web: add social preview image (7d19de7)
  • web: crop transparent edges by default (8ba76cc)
  • web: derive download names from inputs (710fa92)

Performance Improvements

  • web: cache crop metadata (#4) (369261a)
  • web: defer advanced control updates (#2) (739e1dd)

v1.0.0

Choose a tag to compare

@privatenumber privatenumber released this 24 Aug 02:36
v1.0.0

unbg removes a solid background by comparing two pixel-aligned images of the same subject on different background colors. Difference matting recovers soft edges, anti-aliasing, glows, and partial transparency instead of estimating a hard mask.

Included

  • CLI support for PNG, JPEG, and static WebP inputs with PNG output
  • Node.js API for encoded image bytes
  • Browser-safe core API for raw RGBA pixels
  • Automatic background detection with explicit color overrides
  • Alpha floor and ceiling controls for artifact cleanup
  • Transparent-edge cropping with an optional alpha threshold
  • Local browser processing through a Web Worker

Install with npm install unbg, run it directly with npx unbg, or try it online.

npm package