You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
You can fix this bug by editing the code at line 54 in the file /node_modules/html-to-image/es/index.js as follows: const blob = await canvasToBlob(canvas); -> const blob = await canvasToBlob(canvas, options);
I recommend using patch-package at https://www.npmjs.com/package/patch-package
Expected Behavior
toBlob(node, { type: "image/jpeg" }) should get a blob with a jpeg embedded
Current Behavior
toBlob(node, { type: "image/jpeg" }) is always embedding a png
Possible Solution
toBlob is calling canvasToBlob WITHOUT the options
Steps To Reproduce
Additional Context
Your Environment
The text was updated successfully, but these errors were encountered: