get-salt-AI / SaltAI

GNU General Public License v3.0
71 stars 9 forks source link

Impossible to save mask in LoadImage node on website #19

Open marom17 opened 1 month ago

marom17 commented 1 month ago

Hi,

I get the following error when a try to save the mask of the LoadImage node on the website:

Uncaught (in promise) DOMException: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data. at MaskEditorDialog.save (https://iframe.getsalt.ai/extensions/core/maskeditor.js:844:32) at HTMLButtonElement. (https://iframe.getsalt.ai/extensions/core/maskeditor.js:229:10)

Step to reproduce: Create a new workflow on getsalt.ai Create a LoadImage node Upload an image Create a mask Click save mask Nothing happen and an error is shown in the console

Tested on Firefox and Edge

WAS-PlaiLabs commented 1 month ago

A work around in the meantime would be to convert the mask to a image, and output with the SaltOutput node.