newism/craft-image-colors
最新稳定版本:1.0.0
Composer 安装命令:
composer require newism/craft-image-colors
包简介
Extract beautiful, weighted color palettes from your Craft CMS images
README 文档
README
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.
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
- Craft CMS 5.6+
- PHP 8.2+
- GD extension
Installation
composer require newism/craft-image-colors php craft plugin/install image-colors
Documentation
Full documentation is available at https://plugins.newism.com.au/image-colors.
Support
For support, please open an issue on GitHub.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2026-04-07

