enyancc / image-palette
Extracts colors from an image and generates a color palette.
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
Type:statamic-addon
Requires
- php: >=7.3
- ext-gd: *
- ksubileau/color-thief-php: ^1.4
This package is auto-updated.
Last update: 2025-03-14 11:29:58 UTC
README
Features
- Automatically grab the color palette from your image assets.
- Update existing image assets using integrated command.
- Access palette colors in antlers.
- Preview palette when editing an image
Getting Started
We have made things easy for you start. Here is the three steps your need to follow:
-
Install the addon Simply run
composer require enyancc/image-palette
You also can follow official Statamic help guide -
Generate palette for existing assets. If you already started uploading assets, it is very easy to add palette, run
php please imagepalette:generate
. -
Use it. Access palette colors in your antlers templates using
{{ asset:palette }}
iterator
Changelog
1.0.0 🚀 Initial release.