aboutsummaryrefslogtreecommitdiff
path: root/backend/data/genImgsForWeb.py
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-06-05 18:10:42 +1000
committerTerry Truong <terry06890@gmail.com>2022-06-05 18:10:42 +1000
commit07f6c76a442d1c7f3c3c8ea36523f7dd7a35c46a (patch)
tree37dca3610a7bd88b61ff57720a8ddb443cbc1c0a /backend/data/genImgsForWeb.py
parent3b105e543a0e2e7097e3156d3daa1bdc0bd3fc2b (diff)
Move EOL image download/review scripts into eol/
Diffstat (limited to 'backend/data/genImgsForWeb.py')
-rwxr-xr-xbackend/data/genImgsForWeb.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/data/genImgsForWeb.py b/backend/data/genImgsForWeb.py
index d1eef1b..68089b7 100755
--- a/backend/data/genImgsForWeb.py
+++ b/backend/data/genImgsForWeb.py
@@ -16,7 +16,7 @@ if len(sys.argv) > 1:
print(usageInfo, file=sys.stderr)
sys.exit(1)
-imgDir = "eolImgsReviewed/"
+imgDir = "eol/imgsReviewed/"
outDir = "img/"
imagesListDb = "eol/imagesList.db"
dbFile = "data.db"
@@ -78,7 +78,7 @@ for i in range(inputImgIdx, len(inputImgList)):
contentId = int(otherStr.split(".")[0])
print(f"Converting {imgName}")
subprocess.run(
- ['npx', 'smartcrop-cli',
+ ['npx', 'smartcrop-cli',
'--width', str(IMG_OUT_SZ),
'--height', str(IMG_OUT_SZ),
imgDir + imgName,