瀏覽代碼

Add the output format description for batch conversion

nagadomi 9 年之前
父節點
當前提交
1222bc28e7
共有 1 個文件被更改,包括 3 次插入0 次删除
  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
 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`.
 See also `th waifu2x.lua -h`.
 
 
 ### Using photo model
 ### Using photo model