Skip to content

Quantize to several palettes at once, with a color count independent of palette size #167

Done

Description

@vycdev

Summary

Today you pick one palette, and choosing it sets the color count to the palette's size. #156 lets you select several palettes and keep your own color count: the image is reduced to that count first, then matched to the combined palette colors.

Behavior change

This changes results for existing users. Picking a 30-color palette while the count is 16 used to give 30 mapped colors; with reduce-then-match it gives 16 or fewer, and two reduced colors can map to the same palette color. The PR must either keep the old behavior by default or call the change out clearly in the docs and changelog.

Persistence

  • New key kromacut.selectedPaletteIds, migrating from the current single-selection key. Keep reading the old key.
  • Out of scope for now: automatically saving every generated palette into the user's palette library. As written in Add live thresholds, filament matching, nozzle previews and portable projects #156 it adds a new entry after every quantize and threshold Apply, with no limit. If we want it, it should be opt-in or capped, in its own PR.

Acceptance

  • Tests for the migration and for reduce-then-match with overlapping palettes.
  • Docs: update the quantize guide.

Split from #156.

Activity

  1. added
    enhancement
    on Nov 16, 2026
  2. vycdev commented on Dec 1, 2026

    @vycdev
    OwnerAuthor

    Fixed in develop by #262. It ships in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions