Nodes/ComfyUI-Apt_Preset/color_Fragment
ComfyUI Node

color_Fragment

A seeded tile-fragment glitch effect

By cardenluo·Created 2 years ago·Updated 22 days ago· 309
color_Fragment
  • image
  • IMAGE
fragment_width64
fragment_height64
seed0

This one's filed under color_adjust, but it reads less like a grading tool and more like a creative texture/glitch effect. color_Fragment chops the image into fragment_width × fragment_height tiles and applies a seeded operation to them - the exact per-tile behavior isn't spelled out anywhere beyond the node's name and its three parameters, but the shape of the input set (a seed plus two tile-size dials, nothing else) is the classic signature of a randomized mosaic, shatter, or scramble effect: the same seed reproduces the same fragmentation, a different seed gives you a different one.

I'd file this under "creative texture tool" rather than something you reach for on a normal photoreal pipeline - good for a broken-glass or datamosh look, or as a raw texture generator. Since the exact algorithm isn't documented, the honest approach is to wire it up, try a few seeds and tile sizes, and look at the result rather than predicting it in advance.

How it works

Tile-based, seeded - that's as far as the schema and node name commit to. Treat the two size fields as your main creative control and the seed as your variation control, the same way you'd treat any seeded randomized effect elsewhere in ComfyUI.

The inputs and outputs that matter

  • fragment_width / fragment_height (8-512, step 8, default 64) - the tile size in pixels. Smaller (toward 8) gives a finer, noisier scramble; larger (toward 512) gives big, blocky chunks.
  • seed (0 to a very large integer ceiling, standard ComfyUI seed range) - reproduces the same fragmentation pattern at a fixed value, or gives you a fresh scramble at the same "grain" when changed.
  • image in, IMAGE out.

How to install it

Through ComfyUI Manager: search "ComfyUI-Apt_Preset", install, restart. Manually:

cd ComfyUI/custom_nodes
git clone https://github.com/cardenluo/ComfyUI-Apt_Preset.git

then run install.bat (Windows) or install requirements manually on Linux/Mac, and restart. No model downloads for this node.

Common issues & troubleshooting

Effect is too subtle or too extreme. Tile size is the main lever before touching the seed - try moving fragment_width/fragment_height toward either end of their range first.

Result looks basically the same across different seeds. At a fixed tile size the overall "grain" of the effect stays similar; if you want a visibly different look rather than just a different arrangement, change tile size too, not just seed.

Not sure what this node is supposed to do to your image. That's fair - there's no tooltip or written spec for the per-tile operation. Queue it once at the defaults on a test image before building it into a real pipeline, since the only reliable way to know the effect here is to look at it.

IMPORT FAILED on the pack. ComfyUI-Apt_Preset is large and updates often; users have reported import failures after some updates. Reinstall via Manager before assuming it's this node.

CategoryApt_Preset/image/color_adjust

Inputs (4)

NameTypeDefaultDescription
imageIMAGE
fragment_widthINT648–512
fragment_heightINT648–512
seedINT00–18446744073709550000

Outputs (1)

NameTypeDescription
IMAGEIMAGE