feat: Export board as PNG image #19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/6-export-board-image"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #6
Summary
Added PNG export endpoints for the pixel board. Users can download the full board or a specific region as a PNG image with optional upscaling.
Endpoints
scale(1-4, default 1)x,y,w,h,scale(1-8)Changes
renderBoardPng()-- full board to PNG bufferrenderRegionPng()-- arbitrary rectangular region to PNG bufferTests
10 tests, all pass. Existing tests unaffected.
Dependencies
pngjs(pure JS, zero native deps)