kolesa-team / go-webp

Simple and fast webp library for golang
MIT License
225 stars 36 forks source link

Include minimum image bounds in calculation #21

Closed guywithnose closed 1 year ago

guywithnose commented 1 year ago

This fixes some strange behavior when you crop an image and then convert to webp.

codecov-commenter commented 1 year ago

Codecov Report

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

Coverage data is based on head (65ae972) compared to base (4708828). Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #21 +/- ## ======================================= Coverage 84.29% 84.29% ======================================= Files 5 5 Lines 191 191 ======================================= Hits 161 161 Misses 18 18 Partials 12 12 ``` | [Impacted Files](https://codecov.io/gh/kolesa-team/go-webp/pull/21?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kolesa-team) | Coverage Δ | | |---|---|---| | [encoder/encoder.go](https://codecov.io/gh/kolesa-team/go-webp/pull/21/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kolesa-team#diff-ZW5jb2Rlci9lbmNvZGVyLmdv) | `66.66% <100.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=kolesa-team). 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=kolesa-team)

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