Pixelizer
LearnMedian Cut vs K-Means vs NeuQuant vs Octree
Guide

Median Cut vs K-Means vs NeuQuant vs Octree

Pixelizer exposes four quantization engines. They are not cosmetic labels: each builds the palette differently, then maps every grid cell to that palette.
Original photo of a mountain lake at sunset
BeforeSource photo
Pixel art of a mountain lake at sunset
AfterSunset landscape · 20 colors · 52×52

Quantization is the step that turns averaged cell colors into a palette of at most Max Colors (2 to 256). Pixelizer exposes four engines in the UI: Median Cut, K-Means, NeuQuant, and Octree. They are not skins on the same output; each partitions color space differently.

Sampling still happens first: your photo is read on a grid from 4 to 256 cells wide and tall. Each cell becomes a color sample. The quantizer clusters those samples, builds swatches, then maps every cell to the nearest swatch. Dither is optional and off by default.

Median Cut

Median Cut recursively splits the color box along the axis with the widest range until it produces enough boxes for your cap. It tends to produce bold, uneven ramps that read well on posters and high contrast subjects.

Median Cut ships on the free tier alongside K-Means. It is a strong default when you want graphic separation and you plan to recolor swatches after convert. The cat showcase at /images/showcase/showcase-cat.webp uses Median Cut at 18 colors on 48 by 48.

Weaknesses show up on subtle skin gradients: you may need a higher Max Colors count or a touch of error diffusion dither to hide steps. Despeckle and manual paint still apply after any engine.

K-Means

K-Means iterates cluster centers to minimize distance between samples and their assigned swatch. It often yields smoother groupings on organic textures like foliage and petals.

Free accounts can switch between Median Cut and K-Means without upgrading. Sunflower at /images/showcase/showcase-sunflower.webp uses K-Means at 16 colors on 44 by 44, a typical floral case where even clusters matter.

K-Means can muddy fine lines if the grid is too coarse. Pair with Crisp edges and a few paint strokes rather than expecting the cluster math to preserve one-pixel whiskers.

NeuQuant

NeuQuant uses a neural network inspired palette learning pass to pick representative colors. Pixel Enthusiast unlocks it. It can preserve surprising accents under tight caps when Median Cut would collapse them.

Use NeuQuant when brand colors or costume details must survive 16 to 32 Max Colors. Styled looks such as CGA, EGA, Commodore 64, or 8-bit Console still run on top; NeuQuant does not replace those presets.

NeuQuant is slower than Median Cut or K-Means on large grids because the learning pass works harder. Duplicate sketch with Ctrl+D before you sweep grid sizes on enthusiast exports at 4096 px or 8192 px.

Octree and RGBQuant internally

Octree builds a hierarchical tree of color buckets, then collapses leaves to meet the cap. Pixel Enthusiast users pick Octree in the same dropdown as the other engines.

Under the hood, Octree uses RGBQuant internally to implement that tree reduction. RGBQuant is not a fifth consumer-facing option. You will not find a separate RGBQuant toggle in the editor; documentation mentions it so you understand pipeline logs, not so you hunt a hidden mode.

Fox at /images/showcase/showcase-fox.webp uses Octree at 18 colors on 48 by 48. Octree often respects textured fur and wood grain better than Median Cut at the same cap, at the cost of occasional stray speckle you fix with Despeckle.

Choosing an engine

Start free with Median Cut for graphic posters and K-Means for organic photos. Upgrade paths to NeuQuant and Octree when accents collapse or fur and fabric need smarter buckets.

Max Colors interacts with every engine. Lower caps exaggerate differences. At 64 plus colors on large grids, engines converge visually and manual touch ups dominate.

Switching engine does not change grid dimensions or export tier. PNG and JPG exports remain watermark free at 1080 px free or 4096 px and 8192 px enthusiast.

Dither, edges, and looks

Quantizers do not imply dither. Turn on error diffusion or ordered Bayer after you pick an engine. Intensity slider scales grain. Soft and Crisp edges change boundary read independent of quantizer.

Styled looks (Auto, Game Boy, Ink Wash, enthusiast presets) bias the convert pass but still honor your selected engine and color budget.

Studio follow through

Quantization ends the automatic pass; palette recolor, paint, fill, eraser, blueprint overlay, and export begin the manual pass. Optional Made with Pixelizer badge stays off by default.

Glint ships four honest quantizer names, not a laundry list of buzzwords. If a blog mentions RGBQuant as if it were a separate Pixelizer mode, map it to Octree and keep editing in the studio.

Tier and account notes

Median Cut and K-Means require no upgrade. NeuQuant and Octree require Pixel Enthusiast. Switching between free engines on the same sketch is a good habit before you blame Max Colors.

Cloud sync and unlimited projects are enthusiast features; quantizer quality on a single export is not artificially degraded on free tier, only premium engines stay locked.

When engines disagree

Tie votes happen: Median Cut preserves shadow depth while K-Means smooths foliage. Save both with duplicate sketch. Pick winners per asset type in your style guide rather than declaring one engine globally best.

At identical settings, compare export PNG at 100 percent zoom. Subtle differences matter for print; they may not matter for distant gameplay sprites.

Glossary alignment

Consumer-facing names: Median Cut, K-Means, NeuQuant, Octree. Internal pipeline note: Octree leverages RGBQuant. There is no separate RGBQuant entry in the quantizer dropdown.

Documentation outside Glint may use old library names; map them to these four UI labels before you file bug reports against Pixelizer.

When in doubt, trust the in-app dropdown and this Learn article, not third-party cheat sheets that list five engines.

Quick A/B method

On the same crop, duplicate sketch and run Median Cut versus K-Means at identical Max Colors and grid. Compare edge harshness before you pay attention to micro shades.

Pixel Enthusiast duplicates should add NeuQuant and Octree tabs in your personal notes. Remember Octree equals RGBQuant internally, not a separate fifth menu item.

Open the studioCreate a project in the gallery and run the same pipeline on your photo.