Export board to an image (png or jpeg)
Hello,
Do you think it could be useful to have a method to export chess board to an image (png or jpeg) ?
I think it should be quite easy to do with a 'canvas" and its "toDataURL" method.
Let me know if you would be interested and if you think it could be add to the main repo and I will try to do it.
Thanks in advance for your answer and have a nice day.
Hi slolo2000,
I am currently working on something for private purposes, I would like to enter chess problems and then export them as graphics. My project isn't quite finished, but have a look at html2canvas, the script can render div tags of a web page in PNG graphics.
https://html2canvas.hertzen.com/
greets, hc
Hi slolo2000,
you can also look for "DOM to Image" repository: https://github.com/tsayen/dom-to-image
This can also export JPG files. greets, hc