imdiff 0.2.4__tar.gz → 0.2.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. {imdiff-0.2.4 → imdiff-0.2.6}/PKG-INFO +1 -1
  2. {imdiff-0.2.4 → imdiff-0.2.6}/imdiff/cli/dir_diff.py +2 -1
  3. {imdiff-0.2.4 → imdiff-0.2.6}/imdiff/gui/file_list_frame.py +1 -1
  4. {imdiff-0.2.4 → imdiff-0.2.6}/imdiff/list_files.py +1 -1
  5. {imdiff-0.2.4 → imdiff-0.2.6}/imdiff/version.py +1 -1
  6. {imdiff-0.2.4 → imdiff-0.2.6}/imdiff.egg-info/PKG-INFO +1 -1
  7. {imdiff-0.2.4 → imdiff-0.2.6}/LICENSE +0 -0
  8. {imdiff-0.2.4 → imdiff-0.2.6}/README.md +0 -0
  9. {imdiff-0.2.4 → imdiff-0.2.6}/imdiff/__init__.py +0 -0
  10. {imdiff-0.2.4 → imdiff-0.2.6}/imdiff/__main__.py +0 -0
  11. {imdiff-0.2.4 → imdiff-0.2.6}/imdiff/cli/__init__.py +0 -0
  12. {imdiff-0.2.4 → imdiff-0.2.6}/imdiff/cli/image_diff.py +0 -0
  13. {imdiff-0.2.4 → imdiff-0.2.6}/imdiff/cli/main.py +0 -0
  14. {imdiff-0.2.4 → imdiff-0.2.6}/imdiff/gui/__init__.py +0 -0
  15. {imdiff-0.2.4 → imdiff-0.2.6}/imdiff/gui/dir_diff_main_window.py +0 -0
  16. {imdiff-0.2.4 → imdiff-0.2.6}/imdiff/gui/image_canvas.py +0 -0
  17. {imdiff-0.2.4 → imdiff-0.2.6}/imdiff/gui/image_diff_main_window.py +0 -0
  18. {imdiff-0.2.4 → imdiff-0.2.6}/imdiff/gui/image_frame.py +0 -0
  19. {imdiff-0.2.4 → imdiff-0.2.6}/imdiff/gui/image_scaling.py +0 -0
  20. {imdiff-0.2.4 → imdiff-0.2.6}/imdiff/gui/status_bar.py +0 -0
  21. {imdiff-0.2.4 → imdiff-0.2.6}/imdiff/gui/transient_menu.py +0 -0
  22. {imdiff-0.2.4 → imdiff-0.2.6}/imdiff/gui/zoom_menu.py +0 -0
  23. {imdiff-0.2.4 → imdiff-0.2.6}/imdiff/image_comparator.py +0 -0
  24. {imdiff-0.2.4 → imdiff-0.2.6}/imdiff/util.py +0 -0
  25. {imdiff-0.2.4 → imdiff-0.2.6}/imdiff.egg-info/SOURCES.txt +0 -0
  26. {imdiff-0.2.4 → imdiff-0.2.6}/imdiff.egg-info/dependency_links.txt +0 -0
  27. {imdiff-0.2.4 → imdiff-0.2.6}/imdiff.egg-info/entry_points.txt +0 -0
  28. {imdiff-0.2.4 → imdiff-0.2.6}/imdiff.egg-info/requires.txt +0 -0
  29. {imdiff-0.2.4 → imdiff-0.2.6}/imdiff.egg-info/top_level.txt +0 -0
  30. {imdiff-0.2.4 → imdiff-0.2.6}/pyproject.toml +0 -0
  31. {imdiff-0.2.4 → imdiff-0.2.6}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: imdiff
3
- Version: 0.2.4
3
+ Version: 0.2.6
4
4
  Summary: Compare image files in different directories
5
5
  Author-email: "John T. Goetz" <theodore.goetz@gmail.com>
6
6
  Project-URL: homepage, https://gitlab.com/johngoetz/imdiff
@@ -27,10 +27,11 @@ def print_diff(leftdir=None, rightdir=None):
27
27
  elif is_image(left) and is_image(right):
28
28
  icmp = ImageComparator(left, right)
29
29
  if icmp.diff_info != 'identical':
30
- ndiffs += 1
31
30
  if isinstance(icmp.diff_info, str):
31
+ ndiffs += 1
32
32
  print(f'{icmp.diff_info} (as image): {subpath}')
33
33
  elif icmp.diff_info > rmse_threshold:
34
+ ndiffs += 1
34
35
  print(f'image difference NRMSE {icmp.diff_info:.4f}: {subpath}')
35
36
  else:
36
37
  diff_output = list(difflib.unified_diff(
@@ -205,7 +205,7 @@ class FileListFrame(ttk.Frame):
205
205
  assert self.file_queue.status == IterableQueue.Status.Filling
206
206
  if self.leftdir and self.rightdir:
207
207
  for file_path, left, right in list_files(self.leftdir, self.rightdir):
208
- if is_image(left) and is_image(right):
208
+ if is_image(left) or is_image(right):
209
209
  file_cmp = ImageComparator(left, right)
210
210
  self.files[file_path] = file_cmp
211
211
  self.file_queue.put(file_path)
@@ -53,5 +53,5 @@ def list_files(left_topdir, right_topdir, subdir=pathlib.Path('.')):
53
53
 
54
54
  def list_image_files(left_topdir, right_topdir, subdir=pathlib.Path('.')):
55
55
  for subpath, left, right in list_files(left_topdir, right_topdir, subdir):
56
- if is_image(left) and is_image(right):
56
+ if is_image(left) or is_image(right):
57
57
  yield subpath, ImageComparator(left, right)
@@ -1,2 +1,2 @@
1
- __version__ = '0.2.4'
1
+ __version__ = '0.2.6'
2
2
  version_info = __version__.split('.')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: imdiff
3
- Version: 0.2.4
3
+ Version: 0.2.6
4
4
  Summary: Compare image files in different directories
5
5
  Author-email: "John T. Goetz" <theodore.goetz@gmail.com>
6
6
  Project-URL: homepage, https://gitlab.com/johngoetz/imdiff
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes