Fails to execute 'getImageData' on 'CanvasRenderingContext2D'
See original GitHub issueI got Uncaught TypeError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The provided float value is non-finite.
error while executing below snippet.
var canvas = document.getElementById('canvas');
canvas.width = 150;
canvas.height = 150;
var context = canvas.getContext('2d');
context.font = "bold 70px Helvetica"
context.textAlign = 'center'
context.textBaseline = 'middle'
context.lineWidth = 3;
context.fillStyle = "rgb(0, 0, 0)";
var gif = new GIF({
workers: 2,
quality: 10
});
gif.addFrame(context, {copy: true, delay: 200});
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
How to fix getImageData() error The canvas has been tainted ...
Uncaught SecurityError : Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data. part of my code:
Read more >DOMException: Failed to execute 'getImageData' on ... - GitHub
DOMException : Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data. #26.
Read more >Uncaught SecurityError: Failed to execute 'getImageData' on ...
HTML : Uncaught SecurityError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D ': The canvas has been tainted by cross-origin ...
Read more >How to Fix "The canvas has been tainted by cross-origin data ...
Uncaught SecurityError : Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data.
Read more >The source width is 0 | RPG Maker Forums
Failed to execute "getImageData" on "CanvasRenderingContext2D ": The source ... It seems to me the error has something to do with drawing the ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
/r/reddit issue? I seem to have “upset” the “higher powers” if you will for some odd reason. Non related to reddit rather Ello.com?? Wayback internet archive??? And of course Googlewemaster cache bla bla bla…I am a loyal Apple advocate; hence I’m using mobile e.g, IPad Air 2 and IPhone 6+ certain links, media Are censored, i’m certain you Know this Vk.com is Russian social media? Quite contrary to media of choice…I read the disclaimers, privacy, intellectual property, as well as Safe Harbor Act both versions, Freedom of Information Act, Digital millennium mobilization Act bla bla bla…Get My drift? Sorry, My apologies for digressing. I enjoy social media, love writing (literature, creative writing) that’s my thing. I’m well-traveled, cultured, comical and Self deprecating but “Those” like to Challenge me?? I’m a Fan or Foe with social “Friends”. As s female, I yearn for intelligent communications…they’re out there they find me for certain or various links I’m pretty transparent, but ambiguious, I Prefer for various geographical “small town small mind”. I welcome suggestions, Feedback etc. I was Hoping to create a repository (Outing ill minded, hackers, trolls, digital terrorists, anti-Progressives etc… And can use a Public Benefit Corporation as well, it’s for a good “cause” Benefits there Are a plethora to Choose. Let me Know how I can help…no outer or external “influences” Trust that…you can take that to the “bank” ! No pun intended, well maybe a little! I’m ornery and like wine as aging it matures! So go figure ?
@anuragagarwal561994 help me very well, thanks!