Skip to content

Reduce the number of colors in an image #871

@jmaferreira

Description

@jmaferreira

I would like to have a method on Jimp to reduce the number of colors in an image. Similar to what happens when we convert an image from RGB to Indexed color / pallet.

It would be nice to have something like:

image.reduceColors(numOfColors)

The RgbQuant.js library does this, but it uses the canvas to accomplish the same effect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request for a new feature or change in behaviorhelp wantedreleasedThis issue/pull request has been released.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions