Intervention / Intervention/image-driver-vips

Implement QuantizeColorsModifier::class

Open
#41 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

minor-release
Dominant language
PHP
Stars
51
Forks
7
Avg merge
16h 42m
Merged PRs (30d)
11

Description

Describe the feature you'd like

Implementation of Intervention\Image\Drivers\Vips\Modifiers\QuantizeColorsModifier::class. Used in Image::reduceColor()

It is currently unclear whether this is even possible with libvips. Color reduction/quantization could only be possible in the encoding output via the bit-depth AFAIK.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the referenced Intervention\Image\Drivers\Vips\Modifiers\QuantizeColorsModifier class and the Image::reduceColor() entry point. Check whether libvips supports the requested color quantization, including whether encoding bit depth is relevant. Done means determining a viable implementation path or documenting that the feature cannot be supported by this driver.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
computer-graphics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.