# markevans/dragonfly

A Ruby gem for on-the-fly processing - suitable for image uploading in Rails, Sinatra and much more!

Repository: https://github.com/markevans/dragonfly
Canonical: https://ross.abutalabs.com/products/markevans-dragonfly
Homepage: http://markevans.github.io/dragonfly
Language: Ruby
License: MIT
License Family: permissive
Last push: 2026-07-21T09:47:23+00:00

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

## Adoption (not part of the score)
Stars 2106, forks 242 (observed 2026-08-28T04:06:13.938779+00:00)

## What it is
Dragonfly is a Ruby gem for on-the-fly processing and management of images and other file attachments, with a Rack-based app that serves processed content via URLs. It integrates with Rails and Sinatra, supports pluggable processors, generators, analysers, and data stores such as S3.

## Use cases
- generate image thumbnails on the fly in Rails
- manage file attachments on ActiveRecord models
- generate text images on demand in Sinatra
- convert uploaded audio files to mp3 and store them in S3
- serve resized images via URLs in a Rack app
- process uploads with custom processors

## When to choose
- you need on-the-fly image resizing or thumbnailing in a Ruby web app
- you want a customizable attachment-handling layer for Rails or Sinatra
- you need pluggable datastores (e.g. S3) and custom processing jobs

## When to avoid
- you are not using Ruby
- you prefer modern alternatives like Active Storage or Shrine for new Rails projects
- you need heavy non-image media processing pipelines

## Facets
- artifact type: library
- maturity: maintenance
- function: image-processing, file-upload, middleware, templating
- domain: web-development, media, image-processing, backend
- platform: ruby
- tags: ruby-gem, thumbnails, attachments, imagemagick, rails, sinatra, on-the-fly-processing, asset-management, datastores, s3, web-server, rack

## Member repositories
- markevans/dragonfly (main) score 74

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:13.938779+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:53:59.892774+00:00, confidence not recorded.
  - readme: https://github.com/markevans/dragonfly (fetched 2026-08-28T04:06:13.938779+00:00, sha 58885fb5f81c)
  - homepage: http://markevans.github.io/dragonfly (fetched 2026-08-29T10:34:06.828713+00:00, sha 732e5ec986b0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
