Skip to content

Commit 7027259

Browse files
committed
Add test to verify that specifying standard qtables and a quality is equivalent to specifying only a quality
1 parent 13bffef commit 7027259

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Tests/test_file_jpeg.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,10 @@ def _n_qtables_helper(n: int, test_file: str) -> None:
614614
None
615615
)
616616
]
617+
618+
qtable_from_qtable_quality = self.roundtrip(im, qtables={0:standard_l_qtable,1:standard_chrominance_qtable}, quality=75).quantization
619+
qtable_from_quality = self.roundtrip(im, quality=75).quantization
620+
assert qtable_from_qtable_quality == qtable_from_quality
617621
# list of qtable lists
618622
assert_image_similar(
619623
im,

0 commit comments

Comments
 (0)