lidia
parent
16f3f9662e
commit
c74bb90f26
Binary file not shown.
@ -1,17 +1,11 @@
|
|||||||
import os
|
import os
|
||||||
# from pathlib import Path
|
|
||||||
|
|
||||||
for root, dirs, files in os.walk("."):
|
for root, dirs, files in os.walk("."):
|
||||||
for f in files:
|
for f in files:
|
||||||
print ("f", f)
|
|
||||||
base, ext = os.path.splitext(f)
|
base, ext = os.path.splitext(f)
|
||||||
if ext[1:].lower() in ("png", "jpg"):
|
if ext[1:].lower() in ("png", "jpg"):
|
||||||
src = os.path.join(root, f)
|
src = os.path.join(root, f)
|
||||||
target = os.path.join(root, base + "-320x.webp")
|
target = os.path.join(root, base + "-320x.webp")
|
||||||
Command(f"{target}", f"{src}", action="convert -resize 320x $SOURCE $TARGET")
|
Command(f"{target}", f"{src}", action="convert -resize 320x $SOURCE $TARGET")
|
||||||
# img = Path("images")
|
|
||||||
# for src in img.glob("*.png"):
|
Command("staff.html", "staff.md", action="pandoc --standalone $SOURCE -o $TARGET")
|
||||||
# # print (src)
|
|
||||||
# target = img / f"{src.stem}-320x.webp"
|
|
||||||
# # print (target)
|
|
||||||
# # Command(, f"{src}")
|
|
Loading…
Reference in New Issue