Comments (3)
Hopefully sometime soon I'll have the time to refactor the library to deal with the blurriness and artifacts. SVG sounds like a way better way to go, but it's been harder trying to find SVG for all the different styles. I'll be sure to ping this issue when there's a better solution.
from chess-image-generator.
Replacing the resource images .png from cburnett with .svg ones seemed to fix the problem.
With .svg loaded
from chess-image-generator.
Honestly I am not even sure the artifacts are coming from your library, but maybe the canvas one?
As I've tried the original sizes out (basically no scaling) and it still produced artifacts, that's why I was inclined to believe there might be a problem with the way loadImage
reads .pngs
Would recreating the styles as .svgs be a possible solution? (maybe I could help with that)
Also for the blurriness even with svgs I've tried a few settings for the frame object which didn't seem to make a difference, like the option quality: 0.5
(inside image{}) which I bumped to 1 and also tried in the canvas context setting ctx.antialias = 'none'
and ctx.quality = 'best'
which produced same result.
from chess-image-generator.
Related Issues (13)
- Wrong lib HOT 1
- use Canvas#toBuffer() instead HOT 1
- Add option for board orientation HOT 2
- support chinese chess or not? HOT 5
- Refactor for Blurriness
- SVG Manipulation HOT 2
- 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.