I want to add at the end of image files the height and width of the file in order to distinguish them but i don't know how to do it.
Does anyone know how to do it?
How do I append the resolution [WxH] to the file name?
-
- Posts: 1
- Joined: 10 Mar 2024, 16:10
Re: Expresion for image file?
Plain File Mode does what you need. Adding the resolution to the file name works the same for both video and image files.
You can use this format:
fn ... current file name
resolution ... width x height
e.g.
You can use this format:
Format: Select all
{ fn } [{ resolution }]
resolution ... width x height
e.g.
Console Output: Select all
$ filebot -rename *.png --db file --format "{ fn } [{ resolution }]" --action TEST --log INFO
[TEST] from [a.png] to [a [2048x904].png]
Please read the FAQ and How to Request Help.