Conditional labels for thumbs and info
Posted: Thu May 26, 2011 8:57 pm
Currently (MP b0.35), no labels display for folder thumbs and there are no metadata tags to use in a label definition for folders.
IMO, useful tags for folder labels might include:
The only path I see to having folder labels appropriate for folders and image labels appropriate for images is for XnView to have a means of defining "conditional" labels. With conditional labels, the user could define a different label for each filetype (or filename mask), including folders.
Here is an idea for the conditional syntax. Each condition would be represented by a separate group in the label definition:
With this approach, there would be no need for “if then else” keywords and the user could specific as many groups as they desired.
For instance:
In this example, the folder label will show the folder size, JPGs and TIFs will show the ISO value, PNGs will show the modification date, and all files will display the filesize in KB.
If no identifier (JPG, PNG, etc) was present (see last group, above), then the tag would apply to all relevant files...
Folder labels should execute/display after the image thumbs/labels in order not to slow the browser down too much.
OK, that's my idea. With slight modification, this approach should work well in "legacy" XnView, too.
IMO, useful tags for folder labels might include:
- {Folder size}
{Image count}
{Sub folder count}
{Creation Date}
Etc.
The only path I see to having folder labels appropriate for folders and image labels appropriate for images is for XnView to have a means of defining "conditional" labels. With conditional labels, the user could define a different label for each filetype (or filename mask), including folders.
Here is an idea for the conditional syntax. Each condition would be represented by a separate group in the label definition:
Code: Select all
/Folder{Foldersize}/ /JPG{EXIF:ISO Value}/
For instance:
Code: Select all
/Folder{Foldersize}/ /JPG,TIF{EXIF:ISO Value}/ /PNG{Modification date}/ /{Size KB}/
If no identifier (JPG, PNG, etc) was present (see last group, above), then the tag would apply to all relevant files...
Folder labels should execute/display after the image thumbs/labels in order not to slow the browser down too much.
OK, that's my idea. With slight modification, this approach should work well in "legacy" XnView, too.