PHPackages                             newism/craft-image-colors - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. newism/craft-image-colors

ActiveCraft-plugin[Image &amp; Media](/categories/media)

newism/craft-image-colors
=========================

Extract beautiful, weighted color palettes from your Craft CMS images

1.0.0(2mo ago)30[1 issues](https://github.com/newism/craft-image-colors/issues)proprietaryPHPPHP &gt;=8.2CI failing

Since Apr 8Pushed 2mo agoCompare

[ Source](https://github.com/newism/craft-image-colors)[ Packagist](https://packagist.org/packages/newism/craft-image-colors)[ RSS](/packages/newism-craft-image-colors/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

[![Image Colors icon](src/icon.svg)](src/icon.svg)

Image Colors for Craft CMS
==========================

[](#image-colors-for-craft-cms)

Extract beautiful color palettes from your images.
Know exactly how dominant each color is.
Build dynamic, image-aware designs.

This plugin extracts weighted color palettes from uploaded images and makes them available in templates, GraphQL, and the admin UI. Each palette is **weighted by pixel proportion**, so you know how dominant each color is within the sampled region.

[![Color data field on asset edit page](docs/screenshots/asset-edit-color-data.png)](docs/screenshots/asset-edit-color-data.png)

[![Asset index card view with color swatches](docs/screenshots/asset-index-cards.png)](docs/screenshots/asset-index-cards.png)

Features
--------

[](#features)

- **6 extraction regions** — overall, focal point, top, right, bottom, left
- **Weighted colors** — up to 4 colors per region, sorted by pixel dominance
- **Focal point aware** — the focal region follows the asset's focal point
- **Automatic extraction** — on upload, replace, and focal point change
- **Drop-in field type** — proportional color bars with click-to-copy hex values
- **Twig API** — access palettes, hex values, RGB, weights, and Craft's ColorData utilities
- **GraphQL support** — query all regions, colors, weights, and focal points
- **Asset index swatches** — color palettes in table and card views
- **Console command** — bulk extract with optional volume filtering
- **Free to use**

Requirements
------------

[](#requirements)

- Craft CMS 5.6+
- PHP 8.2+
- GD extension

Installation
------------

[](#installation)

```
composer require newism/craft-image-colors
php craft plugin/install image-colors
```

Documentation
-------------

[](#documentation)

Full documentation is available at .

Support
-------

[](#support)

For support, please [open an issue on GitHub](https://github.com/newism/craft-image-colors/issues).

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance81

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

63d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/54c91398084bc17848b56c2dc015c3c257fb5871f246f7296a99f1ceba072e4f?d=identicon)[leevigraham](/maintainers/leevigraham)

---

Top Contributors

[![leevigraham](https://avatars.githubusercontent.com/u/25124?v=4)](https://github.com/leevigraham "leevigraham (1 commits)")

---

Tags

craftcmscraftcms-plugincraftcms5

### Embed Badge

![Health badge](/badges/newism-craft-image-colors/health.svg)

```
[![Health](https://phpackages.com/badges/newism-craft-image-colors/health.svg)](https://phpackages.com/packages/newism-craft-image-colors)
```

###  Alternatives

[spicyweb/craft-neo

A Matrix-like field type with block hierarchy

393808.8k10](/packages/spicyweb-craft-neo)[craftcms/feed-me

Import content from XML, RSS, CSV or JSON feeds into entries, categories, Craft Commerce products, and more.

294943.4k27](/packages/craftcms-feed-me)[verbb/image-resizer

Resize assets when they are uploaded.

127273.9k8](/packages/verbb-image-resizer)[spacecatninja/imager-x

Ninja powered image transforms.

29399.9k34](/packages/spacecatninja-imager-x)[verbb/formie

The most user-friendly forms plugin for Craft.

100387.6k57](/packages/verbb-formie)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

53675.5k15](/packages/solspace-craft-freeform)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
