-
Notifications
You must be signed in to change notification settings - Fork 626
Open
Labels
Description
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
const blob = await htmlToImage.toBlob(elem, { type: "image/jpeg" })
Blob has type "image/png"
Additional Context
Your Environment
- html-to-image: 1.11.11
- OS: macOS Sonoma 14.4
- Browser: Chrome
jo-chemla