ksubileau/color-thief-php
Extract dominant colors and palettes from images in PHP. Color Thief PHP ports the MMCQ algorithm and works with GD, Imagick, or Gmagick. Supports JPEG, PNG, GIF, and WebP, and accepts paths, URLs, resources, objects, or binary data.
Visual Personalization & UX Enhancements
Media & Content Platforms
Performance vs. Custom Development
quality parameter to balance speed/memory).Accessibility & Compliance
Roadmap Enablers
phpinfo())."This is a 2-line API to unlock visual intelligence in our product."
color-thief-php extracts dominant colors/palettes from images in milliseconds, enabling:
"A drop-in, high-performance color extraction library for PHP."
#fd2a98), RGB (rgb(253,42,152)), array, or custom objects.// 1 line to get dominant color
$hexColor = ColorThief::getColor('user_upload.jpg', quality: 5, outputFormat: 'hex');
// 1 line for a palette
$palette = ColorThief::getPalette('product_photo.jpg', colorCount: 6);
phpinfo()).How can I help you explore Laravel packages today?