Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Color Thief Php Laravel Package

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.

View on GitHub
Deep Wiki
Context7
v2.0.2

New features

  • Support for PHP 8.4 (see #60, thank @Redominus).
v2.0.1

Bug fix

  • Fixes a regression in 2.0.0 that could cause an infinite loop under specific circumstances (see #52).
v2.0.0

New features

  • PHP 8 compatibility (see #48 and #50, thank @Agapanthus).
  • Add support for reading WebP images (see #45, thank @mreiden).
  • Add support for multiple output color formats (RGB, hexadecimal, integer, array or instances of ColorThief\Color class).
  • Add support for image adapter selection. You can now choose which image extension to use between GD, Imagick or Gmagick, or provide a custom image adapter.

Bug fix

  • Fix bug where getPalette() does not always return the requested amount of colors (see #5).

Breaking changes

  • Drop support for PHP 5.x, 7.0 and 7.1, now require 7.2+.
  • Reworked exceptions so that all exceptions now inherit from ColorThief\Exception\Exception. Migrating from 1.x may require tweaking exception handling in calling code to avoid unhandled exceptions or preserve error handling logic. See 1bf90f40 for details.

Noticeable changes

  • Switch to MIT license.
  • Fileinfo extension is now required.
  • Reworked some internal image loading logic.
v1.4.1
  • Significant performance improvement. Around 30% faster and between 20 to 50% less memory usage (see #44, thank @mreiden).
  • Fix incorrect palette with single color images (see #41, thank @mreiden).
v1.4.0
  • Drop support for PHP 5.3, now require 5.4+.
  • Fix incorrect palette with CMYK images using Imagick or Gmagick (see #37, thank @crishoj).
  • Test against PHP 7.2
v1.3.1
  • Improve handling of corrupted images: throw a RuntimeException if GD fails to load image. (see #30, thank @othmar52).
  • Fix invalid color values under certain circumstances (see #24).
  • Use a PSR-4 autoloader (see #28, thank @jbboehr).
  • Test against PHP 7.1 (see #27, thank @jbboehr).
v1.3.0
  • Color Thief PHP now officially supports PHP 7 ! (see #19).
  • Add GMagick support (see #15).
  • Add capability to load an image from binary string (see #21).
  • Code rewriting and refactoring, improved documentation (see #22, thank @kisPocok).
v1.2.0
  • Add support of area targeting (see #12).
  • Fix error with remote images (see #13, thank @rewmike).
  • Fix minor syntax errors (see #14, thank @grachov).
  • Small performance improvements and code cleanup.
v1.1.0
  • Add support for Imagick and GD resources. In addition to the path or URL of the image, now you can also directly pass the GD resource or Imagick instance to the getColor and getPalette methods (see #10).
  • Fix fatal error whith solid white images. An exception is now thrown in this case, allowing the caller to catch it (see #11).
  • Fix possible undefined offset under certain circumstances.
  • Change error handling policy : throw exceptions in case of errors instead of return false.
v3.0.0
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor