diff --git a/docs/2023-07-01-pastebin.html b/docs/2023-07-01-pastebin.html index 566fead..d0d7dd2 100644 --- a/docs/2023-07-01-pastebin.html +++ b/docs/2023-07-01-pastebin.html @@ -452,10 +452,10 @@ rsync -avzP src/ dst
Rename:
# If dry run, remove --exec
-f2 --replace "{mtime.YYYY}{mtime.MM}{mtime.DD}_{mtime.H}{mtime.mm}{mtime.ss}{ext}" --fix-conflicts --exec
+f2 --replace "{mtime.YYYY}{mtime.MM}{mtime.DD}_{mtime.H}{mtime.mm}{mtime.ss}{ext}" --fix-conflicts --fix-conflicts-pattern "_%02d" --exec
# Include ImageSize (require exiftool)
-f2 --replace "{mtime.YYYY}{mtime.MM}{mtime.DD}_{mtime.H}{mtime.mm}{mtime.ss}_{xt.ImageSize}{ext}" --fix-conflicts --exec
+f2 --replace "{mtime.YYYY}{mtime.MM}{mtime.DD}_{mtime.H}{mtime.mm}{mtime.ss}_{xt.ImageSize}{ext}" --fix-conflicts --fix-conflicts-pattern "_%02d" --exec
# Remove space in directory
f2 --find " " --replace "_" --string-mode --only-dir --exec
@@ -474,11 +474,15 @@ f2 --find "
Convert:
vips jxlsave filename.jpg filename.jxl --keep=none
+ # Add --vips-progress to show progress
+vips jxlsave filename.jpg filename.jxl --keep=none
# Batch convert (require fd)
fd "jpg|jpeg|png|webp" --exec vips jxlsave {} {.}.jxl --keep=none
-fd "jpg|jpeg|png|webp" --exec-batch rm
+fd "jpg|jpeg|png|webp" --exec-batch rm
+
+# Rotate
+vips rot filename.jxl new_filename.jxl d90