$npx skillfedfor your agent

colorthief

A module for grabbing the color palette from an image.

With conditionsPyPI GraphicsReleased Feb 2017444.7K downloads / moBSDPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — colorthief-0.2.1-py2.py3-none-any.whl
v0.2.1 · released 2017-02-09

Yes, if you need basic color extraction and can tolerate an unmaintained package. The module is lightweight, dependency-free, and works for its stated purpose. Install only if the 0.2.1 release meets your requirements without needing updates—do not rely on it for production systems requiring ongoing support or Python 3.x compatibility guarantees.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Installs cleanly with no runtime dependencies.
  • However, the package is abandoned—last release was 2017-02-09 and last commit 2022-10-31, with no active maintenance.
  • Use only if the existing functionality meets your needs without requiring updates.

License · maintenance · safety

BSD (permissive) — BSD license is permissive, allowing commercial and private use with minimal restrictions. You may use, modify, and distribute the package freely provided you retain the license notice.

last release 2017-02-09 (3473 days) · last repo commit 2022-10-31 · 1,115 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 444,712 downloads/mo, #6,620 on PyPI

Verify before relying

from colorthief import ColorThief

color_thief = ColorThief('/path/to/imagefile')
dominant_color = color_thief.get_color(quality=1)
palette = color_thief.get_palette(color_count=6)
  • Whether the package works reliably with modern image formats and current Python versions beyond 2.7
  • Performance characteristics on large images or batch processing scenarios
  • Compatibility with Python 3.x versions (classifiers only list 2.6 and 2.7)
Same gist for agents: .md · .json

What it is and what it does

ColorThief is a Python module that analyzes images to extract their dominant color and generate color palettes. It accepts either a file path or a file-like object and uses the median cut algorithm to cluster similar colors, returning RGB tuples. The module offers a quality parameter to trade off between accuracy and speed—higher quality values produce more precise results but take longer to compute.

The package has no external runtime dependencies and installs as a pure Python wheel. However, it is no longer actively maintained; the last release was in 2017 and development has effectively stopped. It remains functional for straightforward color extraction tasks but receives no updates for compatibility with newer Python versions or image formats.

Use it for

  • Extract the dominant color from a product photo for UI theming or design automation
  • Generate a representative color palette from artwork or photographs for color scheme inspiration
  • Analyze images in batch to build a dataset of color distributions for machine learning or analytics
  • Build image thumbnails with a matching background color derived from the source image
  • Create color-based image search or filtering systems by comparing extracted palettes

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need basic color extraction and can tolerate an unmaintained package.

The module is lightweight, dependency-free, and works for its stated purpose. Install only if the 0.2.1 release meets your requirements without needing updates—do not rely on it for production systems requiring ongoing support or Python 3.x compatibility guarantees.

Install

colorthief on PyPI

Before you install

Installs cleanly with no runtime dependencies. However, the package is abandoned—last release was 2017-02-09 and last commit 2022-10-31, with no active maintenance. Use only if the existing functionality meets your needs without requiring updates.

License in practice

BSD license is permissive, allowing commercial and private use with minimal restrictions. You may use, modify, and distribute the package freely provided you retain the license notice.

Quickstart

from colorthief import ColorThief

color_thief = ColorThief('/path/to/imagefile')
dominant_color = color_thief.get_color(quality=1)
palette = color_thief.get_palette(color_count=6)

Verify before relying

  • Whether the package works reliably with modern image formats and current Python versions beyond 2.7
  • Performance characteristics on large images or batch processing scenarios
  • Compatibility with Python 3.x versions (classifiers only list 2.6 and 2.7)

Package facts

LicenseBSD permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAbandoned 3,473 days since the last release
Last repo commit
First released
Downloads444,712 / month, #6,620 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseProgramming Language :: PythonProgramming Language :: Python :: 2.6Programming Language :: Python :: 2.7

Evidence: colorthief-0.2.1-py2.py3-none-any.whl

Tags

Capabilities
extract dominant color from imageimage color palette extractionget colors from imagecolor analysis from photosimage color detectionmedian cut color clusteringcolor thief python
Topics
image-processingcolor-analysisunmaintained

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “extract dominant color from image”

  • colorthiefExtracts dominant colors and color palettes from images using the…
  • materialyoucolorGenerates Material Design 3 color schemes and palettes from source…
  • django-colorfieldAdds a color field to Django models with an interactive color picker…

Give your agent the search over MCP, or paste the wish link into any chat.

More Graphics packages

pillow Worth it
PyPI · Graphics · released Jul 2026

Pillow adds image processing capabilities to Python, providing file format support, efficient pixel data handling, and image manipulation operations.

Install it if you need to work with images in Python—it is the de facto standard for this task.

MIT-CMUcompiled wheel · 3.10+
547.1Mdownloads / mo
fonttools Worth it
PyPI · Text Processing · released May 2026

fonttools manipulates font files in multiple formats (TrueType, OpenType, AFM, Type 1, Mac-specific) and includes TTX, a tool to convert fonts to and from XML text format.

Install it if you need to read, write, or manipulate fonts programmatically or via the TTX command-line tool.

permissive licensepure Python · 3.10+
235.9Mdownloads / mo
matplotlib-inline Worth it
PyPI · Graphics · released May 2026

Enables matplotlib figures to display inline directly within Jupyter notebooks and IPython environments instead of in separate windows.

BSD-3-Clausepure Python · 3.9+
130.5Mdownloads / mo
pymupdf Worth it
PyPI · Libraries · released Aug 2026

PyMuPDF extracts, renders, converts, and manipulates PDF and other document formats (XPS, EPUB, images, Office files via Pro) with high performance, providing text, tables, images, and metadata with precise layout information.

The AGPL license requires careful review if you are building proprietary software—commercial licensing is available from Artifex.

AGPLcompiled wheel · 3.10+
114.9Mdownloads / mo
pypdfium2 Worth it
PyPI · Libraries · released Aug 2026

pypdfium2 is a Python binding to PDFium that enables PDF rendering, inspection, manipulation, and creation through a ctypes interface to Google's PDFium library.

Install it if you need PDF rendering, inspection, or manipulation in Python; the medium install friction is offset by comprehensive platform support.

permissive licensecompiled wheel · 3.6+
76.9Mdownloads / mo
altair Worth it
PyPI · Graphics · released Jun 2026

Altair is a declarative Python library for creating interactive statistical visualizations by writing simple, readable code that compiles to Vega-Lite specifications.

BSD-3-Clausepure Python · 3.10+
54.5Mdownloads / mo

See also colorclass · distinctipy · colorful · coloraide · ansicolors · materialyoucolor · colourmap · colorlog · pixeloe · epaper-dithering