summaryrefslogtreecommitdiff
path: root/pictures.py
diff options
context:
space:
mode:
authorpdp8 <pdp8@pdp8.info>2022-08-26 01:54:48 +0200
committerpdp8 <pdp8@pdp8.info>2022-08-26 01:54:48 +0200
commitd684a873fce8ed3e19d514839afbf831162c2ed8 (patch)
treeb2a01d612ddf4dcc62d7b37552ec2302ad3cdd88 /pictures.py
parentf7e3fbebc0b481ce0ac76506b8a017a9a63bec11 (diff)
webm videos reactivated
Diffstat (limited to 'pictures.py')
-rwxr-xr-xpictures.py5
1 files changed, 3 insertions, 2 deletions
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)
+ """