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

Any questions? Need some help?
Post Reply
thenumber69
Posts: 1
Joined: 10 Mar 2024, 16:10

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

Post 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?
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Expresion for image file?

Post 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]
:idea: Please read the FAQ and How to Request Help.
Post Reply