Introduction
PEC holds the machine-level stitch data of Brother embroidery designs. It is usually found embedded in PES files, where it does the machine part of the work, and can also be stored as a file of its own.
Structure
A standalone PEC file often begins with the string #PEC0001. The first
part of the PEC header is 512 bytes and holds a label, thumbnail dimensions, the number
of colours and palette indices. A second part gives the width, height, thumbnail
offsets and the stitch list. Stitches are relative X and Y offsets, in a one-byte short
form or a two-byte long form; the top bit marks the long form, which also carries the
bits for jumps and trims.
Not described
Known, not yet covered
- Reference: this page is a summary; the header fields, palette, stitch bits and thumbnails are not yet described in full on this site.
- Viewer: the site has no viewer for PEC designs.
Links
Software
- PE-Design – Brother’s embroidery design software, which works with PES files and the PEC data in them
Developers
- pyembroidery – library that reads and writes PEC (Python)
Reference
- Embroidery format PEC – EduTech Wiki, University of Geneva