We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 957b51a commit 7df1fd7Copy full SHA for 7df1fd7
scripts/thumbnail-images.py
@@ -9,7 +9,14 @@
9
10
max_size = 160, 80
11
12
+# Exclude these images from thumbnailing
13
+excludes = ["assets/signac.png"]
14
+
15
for infile in glob.glob("assets/*.png"):
16
+ if infile in excludes:
17
+ continue
18
im = Image.open(infile)
19
+ if im.width <= max_size[0] and im.height <= max_size[1]:
20
21
im.thumbnail(max_size)
22
im.save(infile)
0 commit comments