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
diff --git a/posts/2023-07-01-pastebin.md b/posts/2023-07-01-pastebin.md index 8cfc284..c057515 100644 --- a/posts/2023-07-01-pastebin.md +++ b/posts/2023-07-01-pastebin.md @@ -323,10 +323,10 @@ Rename: ```sh # 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 @@ -337,9 +337,13 @@ f2 --find " " --replace "_" --string-mode --only-dir --exec Convert: ```sh +# 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 + +# Rotate +vips rot filename.jxl new_filename.jxl d90 ```