You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just did some testing on this, and didn't see any performance improvements. It might have been my implementation, but I actually saw a 100ms increase. You still need canvas, since canvas-to-buffer doesn't include tooling for createCanvas or loadImage. The latter could be abstracted away using svgs, but the former will always be needed. eg:
const{ createCanvas, loadImage }=require("canvas");constFrame=require("canvas-to-buffer");constcanvas=createCanvas(this.size,this.size);// ... all the existing code// Outputconstframe=newFrame(canvas);returnframe.toBuffer();
Drop this lib
chess-image-generator/src/chess-image-generator.js
Line 5 in e885ef1
it will work much faster
The text was updated successfully, but these errors were encountered: