File formats
| Extension | What | Made by |
|---|---|---|
.scrbr | A Scriber project | File → Save |
.scrlib | Machines and materials to share | Machines & materials → Export ▾ |
library.json | Your own material library | The app, in its config folder |
machines/*.json | Built-in machines | Shipped with Scriber |
.svg, .png | Exports for laser software | File → Export |
.dxf | CAD drawing, in and out | File → Import ▸ DXF…, File → Export ▸ DXF… |
.xs | xTool Studio project, in and out | File → Import ▸ xTool Studio project (.xs)…, File → Export ▸ xTool Studio (.xs)… |
.scrbr projects
A zip archive:
my-box.scrbr
├── document.json everything you drew, as readable JSON
└── images/
└── <id>.png imported images (greyscale originals)document.json holds the material size, notes, layers, items, constraints and parameters, groups, review comments, and the ids of the chosen machine, laser module and material (the settings themselves stay in the library). It carries a format number (now 2); a file from a newer Scriber is refused with a request to update, and older files are converted when opened.
Because the JSON is plain text, document.json diffs well in version control. Images are kept as separate PNG files rather than inside the JSON.
Coordinates are in millimetres with the origin at the top-left of the material and y growing down. Every shape is stored as one or more contours of vertices {x, y, bulge}, where bulge describes an arc to the next vertex (0 = a straight segment), as in DXF.
.scrlib library files
JSON with format: "scriber-library", a version (now 1) and lists of machines and materials. See Make your own material library for every field and Share a library for importing.
library.json
Your library, in <config>/scriber/library.json ($SCRIBER_LIBRARY overrides the path). Same machine and material objects as a .scrlib, plus removed_machines / removed_materials for built-ins you deleted. It holds only what you added or changed; built-in machines you did not touch always come fresh from the app.
Machine and material JSON
Described in Make your own material library. The built-in machines are the files in the repository's machines/ folder, one machine per file named after its id.
Exports
- SVG: millimetre units; engrave black fill, score blue stroke, cut red stroke; one Inkscape-style layer group per shown Scriber layer, in laser order (engrave, score, cut). Text is converted to outlines.
- PNG: a picture of the drawing.
- DXF: ASCII, AutoCAD 2004 (
AC1018),$INSUNITS= 4 (mm). One DXF layer per shown layer (name and nearest AutoCAD colour index; entities carry the exact colour as a true colour when the layer's colour is not in the palette). Contours areLWPOLYLINEs with bulges, full circlesCIRCLEs, text its outlines. y is flipped: the DXF origin is the material's bottom-left corner.
DXF import
Reads ASCII and binary DXF from R12 to 2018 (with the dxf crate). LINE, ARC, CIRCLE, LWPOLYLINE, 2D/3D POLYLINE (as flat), ELLIPSE, SPLINE (NURBS of any degree, or through fit points), TEXT, MTEXT and INSERT (nested, with arrays) come in; POINT is ignored and other entities (HATCH, DIMENSION, LEADER, images, 3D faces, …) are left out and listed. Entities in blocks on layer 0 take the layer of the INSERT, and colour BYBLOCK its colour. Paper space is ignored. Units: $INSUNITS (none = mm). See Importing DXF for the layer dialog.
.xs: see Exporting and the .xs format notes.
xTool Studio import
Scriber is an independent project, not affiliated with, endorsed by or sponsored by xTool. xTool and xTool Studio are trademarks of their owners. See the .xs format notes.
Reads the active canvas of an .xs project (other canvases are left out, with a note). Element types: PATH (inline dPath or the vectors/svg store; M L H V C S Q T A Z, absolute or relative), LINE, RECT (radius or primitiveCornerData), CIRCLE, REGULAR_POLYGON, STAR, TEXT (its charJSONs glyph paths) and BITMAP (resources/<sha256>.png). Each element's transform is applied to its local outline, so rotation, scale and the CIRCLE 0.01 scale come out right. Other types (QR, …) are skipped and listed. The mapping is in the .xs format notes (section 6).