advanced-nova-media-library icon indicating copy to clipboard operation
advanced-nova-media-library copied to clipboard

Bug: Uncaught DOMException: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported

Open dkudev opened this issue 2 years ago • 3 comments

when the image is loaded from another domain for example amazon Cloudfront from S3 and try to edit the image rotate/crop this exception is thrown DOMException: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported.

DOMException: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported. at a.onSave (https://cp..gr/nova-api/scripts/media-lib-images-field:2261:46) at Ft (https://cp..gr/vendor/nova/vendor.js?id=158eb2009eabe0a47c04:1:1137832) at HTMLButtonElement.n (https://cp..gr/vendor/nova/vendor.js?id=158eb2009eabe0a47c04:1:1139566) at Zr.o._wrapper (https://cp..gr/vendor/nova/vendor.js?id=158eb2009eabe0a47c04:1:1174767) Xt @ vendor.js?id=158eb2009eabe0a47c04:1 It @ vendor.js?id=158eb2009eabe0a47c04:1 Ht @ vendor.js?id=158eb2009eabe0a47c04:1 Ft @ vendor.js?id=158eb2009eabe0a47c04:1 n @ vendor.js?id=158eb2009eabe0a47c04:1 Zr.o._wrapper @ vendor.js?id=158eb2009eabe0a47c04:1

It seems is related with image tag atrribute crossOrigin="anonymous" but can not find a way to put it.

dkudev avatar Feb 17 '23 09:02 dkudev

@dkudev were you able to find any workarounds for this?

ozanhazer avatar Aug 15 '23 13:08 ozanhazer

Nope ;(

dkudev avatar Aug 15 '23 18:08 dkudev

I'll try to check on this this week, latest during the weekend.

bkintanar avatar Aug 23 '23 07:08 bkintanar