Output File Rename

1. Introduction

2. Tag Reference

3. Numbering Rules

4. Rules & Limitations

5. Examples

*GUI in this document refers to Waifu2x-Extension-GUI


Introduction

Waifu2x-Extension-GUI names the output files automatically. With the Output File Rename dialog (click the Rename button to open it), you can customize the output file name.

The dialog offers three modes:

The rename is applied after the file has been saved and moved to its output location. It only changes the file name (base name), the file extension is never touched.

The rename does not take effect when Keep original file name is enabled while an output folder is in use, or when Replace original file is enabled.


Tag Reference

TagDescription
<name>Base name of the source file (without the extension). Example: CatPic.pngCatPic.
<ext>Extension of the source file (without the dot). Example: CatPic.pngpng.
<outext>Extension of the output file (without the dot).
<scale>Scale ratio, such as 2x, or the custom resolution, such as 1920x1080, when a custom resolution is applied. Expands to an empty string in pipelines without upscaling (format conversion only, frame interpolation only, duplicate-frame removal only).
<denoise>Denoise level. Expands to an empty string for engines without a denoise option (RealESRGAN, RealSR, PyTorch, Maxine) and in pipelines without upscaling.
<engine>Short name of the upscaling engine: Waifu2xNcnn, Waifu2xCaffe, Waifu2xConverter, SrmdNcnn, SrmdCuda, RealSR, RealESRGAN, RealCUGAN, Anime4K, Maxine, PyTorch. Expands to an empty string in pipelines without an upscaling engine (format conversion only, frame interpolation only, duplicate-frame removal only).
<number-pad>Sequence number within the source folder, zero-padded. The width adapts to the number of files in the group: 77 files → width 2 → 07. See Numbering Rules.
<number-pad3>Sequence number with an explicit width. Example: <number-pad3>007.
<number-pad3:date:desc>Sequence number with inline sort keys. Allowed parameters: name, date, asc, desc; the default is name asc.
<date:yyyy-MM-dd>Modification date of the source file, formatted with Qt's native format tokens (the format string of QDateTime::toString). Common examples: yyyy-MM-dd2024-01-15, yyyyMMdd-hhmmss20240115-103000.
<ImgQuality:separator>Image quality of the output image. Image files only, and it carries its own connector: cat<ImgQuality:_>cat_Q95.jpg. Expands to an empty string for non-image files (GIF, video).

Tag names are case-insensitive: <NAME> is the same as <name>.


Numbering Rules


Rules & Limitations


Examples

Source file: CatPic.png, Waifu2xNcnn engine, 2x, denoise level 1, output png.