Skip to content

Commit

Permalink
allow to save a jpg diff file in gui step (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
rnn245 authored Jan 22, 2025
1 parent 71b4174 commit 658096f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ v3.3.1

*Release date: In development*

- Allow to save the diff image in jpg format for visual tests working with jpg

v3.3.0
------

Expand Down
2 changes: 1 addition & 1 deletion toolium/visual_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def compare_files(self, report_name, image_path, baseline_path, threshold):
baseline_max.paste(baseline.convert('RGB'))

# Generate and save diff image
diff_path = image_path.replace('.png', '.diff.png')
diff_path = image_path.replace('.png', '.diff.png').replace('.jpg', '.diff.jpg')
diff_pixels_percentage = self.save_differences_image(image_max, baseline_max, diff_path)

# Check differences and add to report
Expand Down

0 comments on commit 658096f

Please sign in to comment.