Comments (1)
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");
const Frame = require("canvas-to-buffer");
const canvas = createCanvas(this.size, this.size);
// ... all the existing code
// Output
const frame = new Frame(canvas);
return frame.toBuffer();
from chess-image-generator.
Related Issues (13)
- Wrong lib HOT 1
- Add option for board orientation HOT 2
- support chinese chess or not? HOT 5
- Refactor for Blurriness
- SVG Manipulation HOT 2
- Weird piece visual artefacts when using generatePNG HOT 3
- Any way to include the columns and rows?
- TypeError: generator.highlightSquares is not a function HOT 3
- .
- installation fails
- Pieces are blurred. HOT 5
- Frame Errors HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chess-image-generator.