I am in a scenario where I want to create n number of QRcode. While creating I don't want to freeze other things happening. So, I have created a web-worker. Now I am unable to use toDataUrl() as it requires canvas and in web-workers we don't have access over "DOM". I am trying to use in angular. Also, I want this as 'PNG' only.