We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7aa65fb commit 073da57Copy full SHA for 073da57
tools/compare-images.py
@@ -23,8 +23,15 @@
23
24
from PIL import Image, ImageChops
25
26
-im1 = Image.open(sys.argv[1]).convert('RGB')
27
-im2 = Image.open(sys.argv[2]).convert('RGB')
+try:
+ im1 = Image.open(sys.argv[1]).convert('RGB')
28
+except:
29
+ sys.exit(0)
30
+
31
32
+ im2 = Image.open(sys.argv[2]).convert('RGB')
33
34
35
36
if list(im1.getdata()) == list(im2.getdata()):
37
print("The 2 pictures are visually identical")
0 commit comments