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
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