PES / PEC — Brother

PES is the modern Brother format. PEC is the color block + thumbnail that live inside a PES (but can also stand on their own). The files have recognizable magic bytes; reading sniffs the content.

Features

Reading

packages/core/src/readers/pes.ts and pec.ts detect the format via magic bytes (isPec(), isPes() in registry.ts:detectFormat). The PES header comes in many different versions; the reader handles PES v1–v10+ through a single robust path.

Writing

src/writers/pes.ts + pec.ts produce a self-contained PES with its PEC embedded. Colors: snapped to the Brother chart. Standard note shown in the UI:

PES: colors are matched to the nearest Brother threads.

← ZHS DST →