# jathu/UIImageColors

Fetches the most dominant and prominent colors from an image.

Repository: https://github.com/jathu/UIImageColors
Canonical: https://ross.abutalabs.com/products/uiimagecolors
Language: Swift
License: MIT
License Family: permissive
Topics: uiimage, uicolor, ios, itunes
Archived: true
Last push: 2021-12-14T14:24:39+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4093, "days_push": 1723, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3275, forks 248 (observed 2026-08-28T04:07:53.414923+00:00)

## What it is
A Swift library that extracts the most dominant and prominent colors from UIImage and NSImage instances, in the style of iTunes artwork coloring. It returns a struct with background, primary, secondary, and detail colors, with configurable quality/performance tradeoffs.

## Use cases
- extract dominant colors from an image in swift
- dynamically theme ui background based on album artwork
- get primary and secondary colors from a photo like itunes
- generate background color matching an image in ios
- derive text colors that complement an image
- color analysis for uiimage on macos

## When to choose
- you need iTunes-style dynamic color theming for iOS, tvOS, or macOS apps
- you want a small, drop-in Swift file or CocoaPods/Carthage dependency
- you need a simple API with quality/performance tuning

## When to avoid
- you need cross-platform color extraction outside Apple platforms
- you need actively maintained code with recent updates
- you need advanced palette generation with many color clusters

## Facets
- artifact type: library
- maturity: maintenance
- function: image-processing, ui-components
- domain: image-processing, mobile-development, desktop-applications
- platform: -
- tags: uikit, color-extraction, dominant-colors, cocoapods, carthage, tvos, ios, macos, swift

## Member repositories
- jathu/UIImageColors (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:53.414923+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-29T18:43:23.055176+00:00, confidence not recorded.
  - readme: https://github.com/jathu/UIImageColors (fetched 2026-08-28T04:07:53.414923+00:00, sha 621e6d702577)
- Data as of 2026-08-30T08:39:29.467469+00:00.
