# discord/lilliput

Resize images and animated GIFs in Go

Repository: https://github.com/discord/lilliput
Canonical: https://ross.abutalabs.com/products/lilliput
Homepage: https://discord.com/blog/how-discord-resizes-150-million-images-every-day-with-go-and-c
Language: C++
License: NOASSERTION
License Family: other
Topics: resize-images, gif, golang, cgo, images, imageops, image, resized-images, thumbnail, image-resizer, crop, jpeg, png, webp
Last push: 2026-08-18T20:23:00+00:00

## Health v2 (maintenance only)
Score: 74/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 28, longevity 100
- inputs: {"age_days": 3449, "days_push": 15, "days_rel": 435, "gap_med": 65, "n_releases_24m": 4}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2051, forks 127 (observed 2026-08-28T04:06:09.169884+00:00)

## What it is
A Go library for resizing and transcoding images, backed by mature C libraries (JPEG, PNG, WebP, AVIF, animated GIF) via cgo. It minimizes memory allocation to support very high-throughput image resizing services.

## Use cases
- resize images in go
- generate thumbnails for uploaded images
- resize animated gifs without losing animation
- convert images between jpeg png webp avif
- build a high-throughput image resizing service
- extract first frame from mov or webm video

## When to choose
- you need fast, low-allocation image resizing in a Go service
- you must handle animated GIF, WebP, or AVIF resizing
- you're building an image proxy or thumbnail pipeline at scale

## When to avoid
- you need pure Go without cgo dependencies
- you need broad platform support beyond Linux and macOS ARM64
- you need general image editing beyond resize/crop/transcode

## Facets
- artifact type: library
- maturity: active
- function: image-processing
- domain: image-processing, web-development, media
- platform: go
- tags: image-resizing, animated-gif, thumbnailing, cgo, jpeg, png, webp, avif, high-throughput, linux, macos

## Member repositories
- discord/lilliput (main) score 74

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:09.169884+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-30T02:57:30.914166+00:00, confidence not recorded.
  - readme: https://github.com/discord/lilliput (fetched 2026-08-28T04:06:09.169884+00:00, sha 9c7867807c17)
  - homepage: https://discord.com/blog/how-discord-resizes-150-million-images-every-day-with-go-and-c (fetched 2026-08-29T10:37:40.889767+00:00, sha 1a92ef0f23e8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
