Skip to content

Commit aa37219

Browse files
committed
Print size change in script
1 parent 7defbe6 commit aa37219

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/thumbnail-images.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,9 @@
1818
im = Image.open(infile)
1919
if im.width <= max_size[0] and im.height <= max_size[1]:
2020
continue
21+
22+
size_before = im.size
2123
im.thumbnail(max_size)
2224
im.save(infile)
25+
26+
print(f"Resized {infile} from {size_before} to {im.size}")

0 commit comments

Comments
 (0)