Difference between revisions of "Place holder in XnView MP"
From XnView Wiki
Line 13: | Line 13: | ||
eg. | eg. | ||
{Filename} => img_example_105 | * {Filename} => img_example_105 | ||
{Filename [0-2]} => img | * {Filename [0-2]} => img | ||
{Filename [5-]} => example_105 | * {Filename [5-]} => example_105 | ||
{Filename [-7]} => img_exam | * {Filename [-7]} => img_exam | ||
You can hide a variable if the value is empty: | You can hide a variable if the value is empty: | ||
Line 41: | Line 41: | ||
eg. | eg. | ||
{Creation Date [Ymd-HMS]} -> 20211202-092920 | * {Creation Date [Ymd-HMS]} -> 20211202-092920 | ||
{Creation Date [A B Y]} -> wednesday march 2021 | * {Creation Date [A B Y]} -> wednesday march 2021 | ||
== EXIF variables == | == EXIF variables == | ||
You can set an EXIF field by using his tag value, eg. {EXIF:x110} | You can set an EXIF field by using his tag value, eg. {EXIF:x110} |
Latest revision as of 09:44, 2 December 2021
In many places of XnView/XnConvert, you can use placeholder. A placeholder is between {}
Variables
All variables are between {}. You can cut a part of the text
- {variable [start-end]}
- {variable [start-]}
- {variable [-end]}
eg.
- {Filename} => img_example_105
- {Filename [0-2]} => img
- {Filename [5-]} => example_105
- {Filename [-7]} => img_exam
You can hide a variable if the value is empty: ((Model: {EXIF:Model}))
Date format
Date variable can be customized, by default system format is used.
- Y - Year
- y - Year without century (00-99)
- m - Month as decimal (01-12)
- d - Day as decimal (01-31)
- H - Hour (01-24)
- M - Minute (00-59)
- S - Second (00-59)
- B - Month name
- b - Abbreviated month name
- A - Weekday name
- a - Abbreviated weekday name
eg.
- {Creation Date [Ymd-HMS]} -> 20211202-092920
- {Creation Date [A B Y]} -> wednesday march 2021
EXIF variables
You can set an EXIF field by using his tag value, eg. {EXIF:x110}