jwagner/smartcrop.js
Content aware image cropping observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4535
- days_rel: n/a
- days_push: 900
- n_releases_24m: 0
Adoption not part of the score
12955 stars · 572 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
smartcrop.js is a JavaScript library that implements a content-aware algorithm to find good crops for images. It runs in the browser, in Node.js, or via a CLI, and returns the optimal crop rectangle for a requested width and height.
Use cases
- automatically crop photos to thumbnails without cutting off faces
- generate smart square crops for image galleries
- crop user-uploaded images for social media previews
- create Ken Burns slideshow transitions from photos
- batch-crop images from the command line
- avoid center-crop failures in responsive image pipelines
When to choose
- you need automatic, content-aware image cropping in JavaScript
- you want a lightweight, dependency-free algorithm that works in browser and Node
- you need to integrate cropping with sharp or GraphicsMagick in Node
When to avoid
- you need ML-based face detection accuracy out of the box
- you work outside the JavaScript ecosystem
- you need full image editing rather than crop suggestions
Facets
library · maturity stable
image-processing computer-vision image-processing web-development computer-vision browser cross-platform cli smart-cropping content-aware-crop javascript thumbnailing nodejs
3 sources
- readme: https://github.com/jwagner/smartcrop.js · fetched 2026-08-28 · 37ed659ff31f
- homepage: http://29a.ch/2014/04/03/smartcrop-content-aware-image-cropping · fetched 2026-08-29 · e90ed80ae732
- site_page: https://29a.ch/about · fetched 2026-08-29 · ca92f7a30cb2
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| jwagner/smartcrop.js | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="jwagner/smartcrop.js")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem