Image Color Picker
Custom field to pick color from a image.
Author:
Wallace Vizerra
Documentation
#Filament Image Color Picker 🎨
Filament Image Color Picker is a Filament plugin that provides a custom color picker input based on an image. This tool allows users to select colors directly from an image, making it perfect for applications that require precise color selection.
#Features
✅ Select colors from any uploaded image
✅ Seamless integration with Filament forms
✅ User-friendly and highly customizable
✅ Supports multiple image formats
#Installation
Filament 3
composer require wallacemaxters/filament-image-color-picker ^0.6
Filament 4
composer require wallacemaxters/filament-image-color-picker ^0.1
#Usage
To use the Filament Image Color Picker, simply include it in your Filament form field configuration:
use WallaceMaxters\FilamentImageColorPicker\ImageColorPicker;
//
return $form->schema([
TextInput::make('image_url')->url()->live(),
ImageColorPicker::make('color')
->columnSpanFull()
->image(fn ($get) => $get('image_url')),
]);
Use ImageColorPicker as Action:
Forms\Components\ColorPicker::make('color')
->suffixAction(fn ($get) =>
Forms\Components\Actions\Action::make('color-from-image')
->action(function ($set, array $data) {
$set('color', $data['color']);
})
->icon('heroicon-o-eye-dropper')
->form([
ImageColorPicker::make('color')
->format('hsl')
->image(fn() => $get('image_url'))
])
),
You can capture the image from FileUpload component.
$uploadedFile = FileUpload::make('image');
return $form->schema([
$uploadedFile,
ImageColorPicker::make('color')->fromComponent($uploadedFile),
]);
#License
This package is open-source and available under the MIT License.
#Preview
Featured Plugins
A selection of plugins curated by the Filament team
Custom Dashboards
Let your users build and share their own dashboards with a drag-and-drop interface. Define your data sources in PHP and let them do the rest.
Filament
Custom Fields
Eliminate custom field migrations forever. Let your users create and manage form fields directly in Filament admin panels with 20+ built-in field types, validation, and zero database changes.
Relaticle
Data Lens
Advanced Data Visualization for Laravel Filament - a premium reporting solution enabling custom column creation, sophisticated filtering, and enterprise-grade data insights within admin panels.
Padmission