webp-sh / webp_server_go

Go version of WebP Server. A tool that will serve your JPG/PNG/BMP/SVGs as WebP/AVIF format with compression, on-the-fly.
https://docs.webp.sh
GNU General Public License v3.0
1.83k stars 175 forks source link

Should return original image when convert failed #209

Closed n0vad3v closed 1 year ago

n0vad3v commented 1 year ago

Fix: https://github.com/webp-sh/webp_server_go/issues/208

github-actions[bot] commented 1 year ago

ghcr.io/webp-sh/webp_server_go (debian 11.7)
============================================
Total: 0 (HIGH: 0, CRITICAL: 0)
codecov[bot] commented 1 year ago

Codecov Report

Merging #209 (1a7fd9f) into master (9efead2) will decrease coverage by 2.01%. The diff coverage is 80.17%.

@@            Coverage Diff             @@
##           master     #209      +/-   ##
==========================================
- Coverage   83.57%   81.57%   -2.01%     
==========================================
  Files           6        6              
  Lines         542      608      +66     
==========================================
+ Hits          453      496      +43     
- Misses         61       76      +15     
- Partials       28       36       +8     
Impacted Files Coverage Δ
encoder.go 65.51% <66.66%> (-11.63%) :arrow_down:
router.go 93.10% <94.73%> (+3.41%) :arrow_up:
config.go 100.00% <100.00%> (ø)
helper.go 87.89% <100.00%> (-0.87%) :arrow_down:
prefetch.go 100.00% <100.00%> (ø)
webp-server.go 78.12% <100.00%> (+0.95%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more