Page 1 of 1

How do I append the resolution [WxH] to the file name?

Posted: 10 Mar 2024, 16:12
by thenumber69
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?

Re: Expresion for image file?

Posted: 11 Mar 2024, 07:26
by rednoah
Plain File Mode does what you need. Adding the resolution to the file name works the same for both video and image files.


:idea: You can use this format:

Format: Select all

{ fn } [{ resolution }]
fn ... current file name
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]