# sdsykes/fastimage

FastImage finds the size or type of an image given its uri by fetching as little as needed

Repository: https://github.com/sdsykes/fastimage
Canonical: https://ross.abutalabs.com/products/fastimage
Homepage: http://github.com/sdsykes/fastimage/tree/master
Language: Ruby
License: MIT
License Family: permissive
Last push: 2026-08-01T17:54:16+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 35, longevity 100
- inputs: {"age_days": 6293, "days_push": 32, "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 1380, forks 118 (observed 2026-08-28T04:04:33.851370+00:00)

## What it is
FastImage is a Ruby library that finds the size or type of an image given its URI by fetching only the minimal bytes needed. It supports many formats including GIF, JPEG, PNG, TIFF, BMP, ICO, PSD, SVG, WEBP and JXL without requiring external image libraries.

## Use cases
- get dimensions of a remote image without downloading it
- find image type from a url
- add width and height attributes to image tags
- check image size on s3 or asset server
- read exif orientation from jpeg
- get image size from a data uri

## When to choose
- you need image dimensions or type from remote or local files in Ruby
- you want to avoid heavy dependencies like ImageMagick
- bandwidth matters and you only need header information

## When to avoid
- you need to process, resize, or transform images
- you need deep image metadata beyond size, type, and orientation
- you are not working in Ruby

## Facets
- artifact type: library
- maturity: stable
- function: image-processing, http-client, parser
- domain: image-processing, web-development, files
- platform: ruby, cross-platform
- tags: image-dimensions, image-metadata, minimal-fetch, remote-images, no-native-dependencies

## Member repositories
- sdsykes/fastimage (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:33.851370+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-30T04:40:15.842294+00:00, confidence not recorded.
  - readme: https://github.com/sdsykes/fastimage (fetched 2026-08-28T04:04:33.851370+00:00, sha 4598c7297bfb)
  - homepage: http://github.com/sdsykes/fastimage/tree/master (fetched 2026-08-29T11:56:11.428806+00:00, sha 15f0f8bc5ea9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
