Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pieces are blurred. #4

Open
loicmarie opened this issue Feb 10, 2021 · 5 comments
Open

Pieces are blurred. #4

loicmarie opened this issue Feb 10, 2021 · 5 comments

Comments

@loicmarie
Copy link

Hi, this is a very useful lib, thank you. I was planning to use it for my project, but unfortunately pieces are blurred, as the ones used as a demonstration in the README.

Looking at the source, it seems logical since images are loaded, and then scaled. I think it would be better to generate a vector image instead, and then scale it, and convert it to PNG, to preserve image quality.

I could not find a way to do this with Canvas (using Canvas in a non-web NodeJS env is a little hackish), so I cannot PR something, and ended up making my own script. I thought it would interest you so I made a gift with a simplified version (using Merida style) that generates a SVG file, that next could be easily converted to a high quality PNG file :

https://gist.github.com/loicmarie/6426394790fb0155225fa4994f89cbdf

@andyruwruw
Copy link
Owner

Looking into fixing this now :)

@LandonSchropp
Copy link

Any updates on this? I'm happy to help if I can.

@andyruwruw
Copy link
Owner

@LandonSchropp Got bogged down by a few other projects and school, would be happy to get help or review pull requests! 😄

@LandonSchropp
Copy link

Sure! I'll see if I can't whip something up this week.

@andyruwruw
Copy link
Owner

Let me know if you have any questions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants