# h2non/bimg

Go package for fast high-level image processing powered by libvips C library

Repository: https://github.com/h2non/bimg
Canonical: https://ross.abutalabs.com/products/bimg
Homepage: https://pkg.go.dev/github.com/h2non/bimg?tab=doc
Language: Go
License: MIT
License Family: permissive
Topics: libvips, golang, watermark, crop-image, image, processing, resize, jpeg, png, webp, crop
Last push: 2025-01-23T09:51:09+00:00

## Health v2 (maintenance only)
Score: 24/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 3, release rhythm 8, longevity 100
- inputs: {"age_days": 4187, "days_push": 587, "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 3030, forks 346 (observed 2026-08-28T04:07:38.901250+00:00)

## What it is
bimg is a small, fast Go library for high-level image processing built on the libvips C library via bindings. It supports operations like resize, crop, rotate, zoom, watermark, blur, and format conversion (JPEG, PNG, WEBP, and optionally TIFF, PDF, GIF, SVG, AVIF) with a low memory footprint and performance typically several times faster than ImageMagick or Go's native image package.

## Use cases
- resize and crop images in a Go service
- generate thumbnails for uploaded photos
- add text or image watermarks to images
- convert images between JPEG, PNG, and WEBP
- auto-rotate images based on EXIF orientation
- apply gaussian blur or grayscale effects to images
- process large batches of images quickly with low memory

## When to choose
- you need fast, memory-efficient image processing in Go
- you want a simple programmatic API over libvips
- you need format conversion including WEBP and AVIF
- throughput matters more than ImageMagick-based alternatives

## When to avoid
- you need an HTTP-based image processing API (use imaginary instead)
- you cannot install libvips and a C compiler in your environment
- you need advanced editing features beyond bimg's supported operations
- you want a pure-Go solution with no C dependencies

## Facets
- artifact type: library
- maturity: stable
- function: image-processing
- domain: image-processing, web-development, developer-tools
- platform: windows, go, cross-platform
- tags: libvips, resize, crop, watermark, format-conversion, jpeg, png, webp, avif, thumbnailing, linux, macos

## Member repositories
- h2non/bimg (main) score 24

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:38.901250+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-30T07:29:49.988203+00:00, confidence not recorded.
  - readme: https://github.com/h2non/bimg (fetched 2026-08-28T04:07:38.901250+00:00, sha 9fb68e63ef00)
  - homepage: https://pkg.go.dev/github.com/h2non/bimg?tab=doc (fetched 2026-08-29T09:44:44.998530+00:00, sha 53bcb39fc9e1)
  - site_page: https://pkg.go.dev/about (fetched 2026-08-29T09:44:45.009384+00:00, sha 757852027879)
  - site_page: https://go.dev/project (fetched 2026-08-29T09:44:45.011421+00:00, sha d5ca00bb378b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
