Explorar o código

Add the output format description for batch conversion

nagadomi %!s(int64=9) %!d(string=hai) anos
pai
achega
1222bc28e7
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      README.md

+ 3 - 0
README.md

@@ -156,6 +156,9 @@ find /path/to/imagedir -name "*.png" -o -name "*.jpg" > image_list.txt
 th waifu2x.lua -m scale -l ./image_list.txt -o /path/to/outputdir/prefix_%d.png
 ```
 
+The output format supports `%s` and `%d`(e.g. %06d). `%s` will be replaced a basename of source filename. `%d` will be replaced a sequence number.
+For example, when input filename is `piyo.png`, `%s_%03d.png` will be replaced `piyo_001.png`.
+
 See also `th waifu2x.lua -h`.
 
 ### Using photo model