How to copy JS canvas content from one window to another?


#1

Hello,
Iā€™m seeking help to port one of my application to electron.
I need to copy the content of a canvas witch is rendered in window A to a second window B .

Here is a link that explain what i want to accomplish : https://github.com/AZOPCORP/electroncanvasproblem

Thank you :slight_smile:


#2

You could copy the canvas data to a string with toDataURL() and copy that to sessionStorage.someName
Then you can read it from there in another process (max 2.5 MB though)


#3

You rules! it works thanx.