Start · tutorial
Save & export
Current Apexify.js 6.0.0 documentation for Save & export.
Save a PNG file (Node.js)
SOURCEtypescript
typescript
Ensure the output folder exists or use a path that already exists:
SOURCEtypescript
typescript
Typical workflow
createCanvas→ basebuffercreateImage/createText/ … → replacebufferwith return valuewriteFileSynconce at the end or after each milestone for debugging
Library save (optional)
For built-in paths, naming, and formats (WebP, JPEG, …), use await painter.save(buffer, options) — see Save to disk and the Raster, batch & output hub.
Other outputs (later)
The library also supports outPut encoding, batch, chain, GIF, charts, video, standalone image tools (crop, palette, …) — see 03-feature-guides. The beginner track stops at manual PNG writes above plus pointers.