bubkoo / html-to-image

✂️ Generates an image from a DOM node using HTML5 canvas and SVG.
MIT License
5.41k stars 505 forks source link

feat: support webp format #343

Closed bubkoo closed 1 year ago

bubkoo commented 1 year ago

add the webp property to the mimes object

re #326

Description

Motivation and Context

Types of changes

Self Check before Merge

codecov[bot] commented 1 year ago

Codecov Report

Base: 67.05% // Head: 67.05% // No change to project coverage :thumbsup:

Coverage data is based on head (3634676) compared to base (d9971a7). Patch has no changes to coverable lines.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #343 +/- ## ======================================= Coverage 67.05% 67.05% ======================================= Files 10 10 Lines 513 513 Branches 118 118 ======================================= Hits 344 344 Misses 120 120 Partials 49 49 ``` | [Impacted Files](https://codecov.io/gh/bubkoo/html-to-image/pull/343?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=%E5%B4%96) | Coverage Δ | | |---|---|---| | [src/mimes.ts](https://codecov.io/gh/bubkoo/html-to-image/pull/343/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=%E5%B4%96#diff-c3JjL21pbWVzLnRz) | `75.00% <ø> (ø)` | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=%E5%B4%96). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=%E5%B4%96)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

vivcat[bot] commented 1 year ago

:tada: This PR is included in version 1.11.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: