aboutsummaryrefslogtreecommitdiff
path: root/KagurazakaYashi/src/c1920jpg.sh
diff options
context:
space:
mode:
Diffstat (limited to 'KagurazakaYashi/src/c1920jpg.sh')
-rw-r--r--KagurazakaYashi/src/c1920jpg.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/KagurazakaYashi/src/c1920jpg.sh b/KagurazakaYashi/src/c1920jpg.sh
new file mode 100644
index 0000000..94112dd
--- /dev/null
+++ b/KagurazakaYashi/src/c1920jpg.sh
@@ -0,0 +1,2 @@
+# 在原始高清文件夹下运行,压制图片
+for file in *.jpg; do echo $file ${file%%.*}.jpg; convert -resize 1920x1920 -quality 80% $file ../${file%%.*}.jpg; done \ No newline at end of file