From d684a873fce8ed3e19d514839afbf831162c2ed8 Mon Sep 17 00:00:00 2001 From: pdp8 Date: Fri, 26 Aug 2022 01:54:48 +0200 Subject: webm videos reactivated --- pictures.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pictures.py') diff --git a/pictures.py b/pictures.py index b9f3095..dc93119 100755 --- a/pictures.py +++ b/pictures.py @@ -22,8 +22,8 @@ favs = subprocess.check_output(cmd, shell=True, text=True).splitlines() distances = {} for fav in favs: basename = os.path.basename(fav) - """ - out = os.path.join("/home/ch/pub/pictures/", basename) + # out = os.path.join("/home/ch/pub/pictures/", basename) + out = os.path.join("/srv/www/pdp8-test/pictures/", basename) cmd = "convert '" + fav + "' -strip -resize 1024x '" + out + "'" os.system(cmd) cmd = ( @@ -49,3 +49,4 @@ for fav in favs: with open("/home/ch/pub/distances.js", "w") as f: s = "distances = " + json.dumps(distances) print(s, file=f) + """ -- cgit v1.2.3