From 70272591f812ea29b5dd137fad64c8b87204396f Mon Sep 17 00:00:00 2001 From: Kylian Ronfleux--Corail <35237015+Kyliroco@users.noreply.github.com> Date: Thu, 10 Apr 2025 12:59:42 +0000 Subject: [PATCH] Add test to verify that specifying standard qtables and a quality is equivalent to specifying only a quality --- Tests/test_file_jpeg.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tests/test_file_jpeg.py b/Tests/test_file_jpeg.py index 79f0ec1a8..dfd4534fc 100644 --- a/Tests/test_file_jpeg.py +++ b/Tests/test_file_jpeg.py @@ -614,6 +614,10 @@ class TestFileJpeg: None ) ] + + qtable_from_qtable_quality = self.roundtrip(im, qtables={0:standard_l_qtable,1:standard_chrominance_qtable}, quality=75).quantization + qtable_from_quality = self.roundtrip(im, quality=75).quantization + assert qtable_from_qtable_quality == qtable_from_quality # list of qtable lists assert_image_similar( im,