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

Export board to an image (png or jpeg) #221

Open
slolo2000 opened this issue Jun 13, 2021 · 2 comments
Open

Export board to an image (png or jpeg) #221

slolo2000 opened this issue Jun 13, 2021 · 2 comments

Comments

@slolo2000
Copy link

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.

@slolo2000 slolo2000 changed the title Export board to png image Export board to an image (png or jpeg) Jun 13, 2021
@hcgreier
Copy link

hcgreier commented Oct 2, 2022

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

@hcgreier
Copy link

hcgreier commented Oct 8, 2022

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

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

2 participants