# muesli/smartcrop

smartcrop finds good image crops for arbitrary crop sizes

Repository: https://github.com/muesli/smartcrop
Canonical: https://ross.abutalabs.com/products/smartcrop
Language: Go
License: MIT
License Family: permissive
Topics: hacktoberfest
Last push: 2023-07-06T12:16:16+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4531, "days_push": 1154, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1855, forks 117 (observed 2026-08-28T04:05:44.768128+00:00)

## What it is
A pure Go library that finds good image crops for arbitrary crop sizes, based on Jonas Wagner's smartcrop.js. It includes a simple CLI application for cropping images from the command line.

## Use cases
- smart crop images to arbitrary aspect ratios
- generate thumbnails that keep the subject centered
- crop photos automatically for different screen sizes
- batch crop images from the command line
- find the most interesting region of an image to crop

## When to choose
- you need content-aware cropping in a Go application
- you want a dependency-light, pure Go image cropping solution
- you need a CLI tool to crop images to specific dimensions

## When to avoid
- you need face detection or deep-learning-based cropping
- you work primarily in JavaScript (use smartcrop.js instead)
- you need the library to also resize or encode images for you

## Facets
- artifact type: library
- maturity: maintenance
- function: image-processing
- domain: image-processing, computer-vision
- platform: go, cross-platform, cli
- tags: smart-cropping, content-aware-crop, thumbnailing, pure-go

## Member repositories
- muesli/smartcrop (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:44.768128+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:16:44.828769+00:00, confidence not recorded.
  - readme: https://github.com/muesli/smartcrop (fetched 2026-08-28T04:05:44.768128+00:00, sha 8fd7d5ac6fca)
- Data as of 2026-08-30T08:39:29.467469+00:00.
