Skip to content

Commit

Permalink
pillow encoder quality is lower
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jul 25, 2024
1 parent f091a72 commit 0630f83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unittests/unit/codecs/color_range_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ def do_test_encode_decode_range(self,
"50": 4,
"10": 0xc if fmt in ("webp", ) else 4,
}.items():
if enc_name == "enc_pillow" and fmt == "webp":
tolerance += 4
enc_options = typedict({"quality": quality})
bdata = enc_mod.encode(fmt, image, options=enc_options)
# tuple[str, Compressed, dict[str, Any], int, int, int, int]
Expand Down

0 comments on commit 0630f83

Please sign in to comment.