trekhleb/js-image-carver
🌅 Content-aware image resizer and object remover based on Seam Carving algorithm observed · 2026-08-28
Health v2 · maintenance only
56/100
- Activity 53
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 1973
- days_rel: n/a
- days_push: 283
- n_releases_24m: 0
Adoption not part of the score
1594 stars · 149 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A JavaScript/TypeScript implementation of the Seam Carving algorithm for content-aware image resizing and object removal. It ships as both a reusable library and a hosted web demo where users can resize images or erase objects by masking them.
Use cases
- resize images without distorting objects
- remove unwanted objects from photos
- change image aspect ratio while preserving subject proportions
- learn how the seam carving algorithm works
- shrink image width while keeping the main subject intact
When to choose
- you need content-aware resizing in a JavaScript or browser environment
- you want a simple, MIT-licensed seam carving implementation to study or embed
- you want an interactive demo for removing objects via a mask
When to avoid
- you need high-performance batch processing of very large images (seam carving is computationally expensive)
- you need GPU-accelerated or production-scale image pipelines
- you only need simple scaling or cropping, which standard tools handle faster
Facets
library · maturity active
image-processing image-processing browser seam-carving content-aware-resizing object-removal typescript demo-app algorithms web-server
2 sources
- readme: https://github.com/trekhleb/js-image-carver · fetched 2026-08-28 · 155f526da4cf
- homepage: https://trekhleb.dev/js-image-carver/ · fetched 2026-08-29 · a1971de1419e
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| trekhleb/js-image-carver | main | 56 |
For agents
markdown · JSON · MCP: product_card(name="trekhleb/js-image-carver")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem