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

画像保存ボタン #10

Open
eggplants opened this issue Oct 7, 2022 · 3 comments · May be fixed by #11
Open

画像保存ボタン #10

eggplants opened this issue Oct 7, 2022 · 3 comments · May be fixed by #11
Assignees

Comments

@eggplants
Copy link

画像を保存するボタンがあると、嬉しいです。

@SnO2WMaN
Copy link
Owner

SnO2WMaN commented Oct 7, 2022

Safari以外は出来た気がするので、がんばります

@eggplants
Copy link
Author

eggplants commented Oct 7, 2022

よさそうです→eligrey/FileSaver.js

Note: The standard HTML5 canvas.toBlob() method is not available in all browsers.

とありますが、今はほとんどの環境で対応してそうです。

https://caniuse.com/mdn-api_htmlcanvaselement_toblob

@SnO2WMaN SnO2WMaN self-assigned this Oct 9, 2022
@SnO2WMaN SnO2WMaN linked a pull request Oct 9, 2022 that will close this issue
@eggplants
Copy link
Author

eggplants commented Oct 29, 2022

react-konva単体でもSaveできそうですが、Refを使うところがきしょいです。

https://konvajs.org/docs/react/Canvas_Export.html

https://github.com/georgebutter/pixill/blob/aebac64235add5de664cf220c7de4da2fc05230e/src/index.tsx

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

Successfully merging a pull request may close this issue.

2 participants