You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
from pathlib import Path
|
|
|
|
|
|
img = Path("images")
|
|
for src in img.glob("*.png"):
|
|
# print (src)
|
|
target = img / f"{src.stem}-320x.webp"
|
|
# print (target)
|
|
Command(f"{target}", f"{src}", action="convert -resize 320x $SOURCE $TARGET")
|
|
# Command(, f"{src}") |