JPEG Saver's item format tokens
Skip to:
Most of the items that JPEG Saver allows you to add to the screen from the Items tab are configurable by using format tokens - these are placeholders that are replaced by the relevant information when the screen saver is running.
Each type of item has its own list of tokens which is shown at the side of the configuration dialog. Double-clicking on an entry in the list will insert it into the format box at the cursor position.
The tables below list all the tokens available for each of the different item types.
The clock item
The clock item displays the current date and time. When the real-time option is enabled, the clock updates constantly as an overlay on the screen and when it is not enabled the clock item is drawn as part of the screen along with the image.
Token | Description |
---|---|
%a | Abbreviated weekday name |
%A | Full weekday name |
%b | Abbreviated month name |
%B | Full month name |
%c | Date and time representation appropriate for locale |
%d | Day of month as decimal number (01-31) |
%H | Hour in 24-hour format (00-23) |
%I | Hour in 12-hour format (01-12) |
%j | Day of year as decimal number (001-366) |
%m | Month as decimal number (01-12) |
%M | Minute as decimal number (00-59) |
%p | Current locale's A.M./P.M. indicator for 12-hour clock |
%S | Second as decimal number (00-59) |
%U | Week of year as decimal number, with Sunday as first day of week (00-53) |
%w | Weekday as decimal number (0-6; Sunday is 0) |
%W | Week of year as decimal number, with Monday as first day of week (00-53) |
%x | Date representation for current locale |
%X | Time representation for current locale |
%y | Year without century, as decimal number (00-99) |
%Y | Year with century, as decimal number |
%z | Time-zone name or abbreviation; no characters if time zone is unknown |
%% | Percent sign |
%#c | Long date and time representation, appropriate for current locale |
%#x | Long date representation, appropriate to current locale |
The image info item
The image info item shows information about the current image - details of the file itself and any extra information stored inside it. There are a lot of tokens available here, so I've broken them up into multiple tables.
Because many of these fields are optional, JPEG Saver has a
“conditional block” token “%{ }
” for
displaying text only when fields are found. For example, the format text
“%{Copyright: %xc}
” will not show anything if the EXIF
copyright field cannot be found in the image.
Token | Description |
---|---|
%f | File name |
%e | File extension |
%p | File path |
%p1 | Path folder 1 |
%p2 | Path folder 2 |
%p3 | Path folder 3 |
%p4 | Path folder 4 |
%p5 | Path folder 5 |
%p6 | Path folder 6 |
%p7 | Path folder 7 |
%p8 | Path folder 8 |
%p9 | Path folder 9 |
%c | Containing folder |
%c1 | Containing folder |
%c2 | Parent folder |
%c3 | Ancestor folder |
%c4 | Ancestor folder |
%c5 | Ancestor folder |
%c6 | Ancestor folder |
%c7 | Ancestor folder |
%c8 | Ancestor folder |
%c9 | Ancestor folder |
%d | Image depth |
%w | Image width |
%h | Image height |
%D | Original image depth |
%W | Original image width |
%H | Original image height |
%m | JPEG Comment |
The containing folder, parent and ancestor folders allow you to organise your images into a hierarchy of folders and display the folder names separately. The “%p1”-“%p9” tokens contain the folders from the root outwards, whereas the “%c1”-“%c9” tokens contain the folders in order from the file back towards the root, as shown in the example table below.
C: | Images | Photos | Winter | Skiing | ouch.jpg |
---|---|---|---|---|---|
- | %p1 | %p2 | %p3 | %p4 | %f.%e |
- | %c4 | %c2 | %c3 | %c1 | %f.%e |
The “%d”, “%w” and “%h” tokens give you the size of the image as it appears on the screen, and the “%D”, “%W” and “%H” tokens give you the size of the image before it was resized.
EXIF fields
EXIF fields are usually added to an image file by digital cameras to provide details of the camera settings used to take the photograph. JPEG Saver only supports the most useful of the EXIF fields - if you want some extra fields supported, send me an email and I'll see what I can do.
The date and time fields support formatting using the same date and time tokens as used for the clock item.
Token | Description |
---|---|
%{} | Conditional block (not actually an EXIF field - see above) |
%x! | Rating |
%xs | Software |
%xa | Artist |
%xc | Copyright |
%xd{%c} | Date / time |
%xz{%c} | Date / time (original) |
%xZ{%c} | Date / time (digitized) |
%xD | Description |
%xM | Make |
%xm | Model |
%xw | Width |
%xh | Height |
%xx | X resolution |
%xy | Y resolution |
%xr | Resolution unit |
%xo | Orientation |
%xe | Exif IFD offset |
%x@ | GPS IFD offset |
%x* | Interoperability IFD offset |
%xv | Exif version |
%xV | FlashPix version |
%xp | Photometric interpretation |
%xl | Colour space |
%xY | YCbCr positioning |
%xk | Components configuration |
%xK | Compressed bits / pixel |
%xX | Exposure time |
%xf | F number |
%xi | ISO speed ratings |
%xu | Shutter speed value |
%xA | Aperture value |
%xB | Exposure bias value |
%xb | Max aperture value |
%xq | Subject distance |
%xL | Metering mode |
%xH | Flash |
%xF | Focal length |
%x3 | Focal length in 35mm film |
%xP | Focal plane X resolution |
%xQ | Focal plane Y resolution |
%xO | Focal plane resolution unit |
%xg | Sensing method |
%xU | Custom rendered |
%xE | Exposure mode |
%xW | White balance |
%xR | Digital zoom ratio |
%xT | Scene capture type |
%xN | Contrast |
%xS | Saturation |
%xG | Sharpness |
%xC | Thumbnail compression |
%xj | Thumbnail offset |
%xJ | Thumbnail length |
%xt | User comment |
%xI | Unique image ID |
EXIF GPS fields
An image EXIF block can contain GPS information about where the photograph was taken. JPEG Saver supports all the fields that I have been able to test - if you have images containing velocity information, I'll be happy to add tokens to display it.
Token | Description |
---|---|
%gg | GPS longitude |
%gG | GPS longitude E/W |
%gt | GPS latitude |
%gT | GPS latitude N/S |
%ga | GPS altitude |
%gA | GPS altitude reference |
%gd | GPS image direction |
%gD | GPS image direction reference |
IPTC fields
IPTC fields are another type of metadata that can be stored in image files - they are used to describe the content of the image.
Token | Description |
---|---|
%in | Name |
%ie | Edit status |
%iu | Urgency |
%iR | Subject reference |
%if | Fixture identifier |
%ii | Special instructions |
%iv | Program |
%iV | Program version |
%iC | Copyright |
%ic | Caption |
%ih | Headline |
%iw | Writer |
%ik | Keywords |
%it | Category |
%iT | Supplemental categories |
%ib | Byline |
%iB | Byline title |
%im | Contact |
%ir | Credit |
%is | Source |
%il | City |
%iL | Sub-location |
%ip | Province |
%iP | Country name |
%io | Country code |
%id{%x} | Creation date / time |
%iD{%x} | Digitized date / time |
XMP fields
XMP is an XML-based metadata format that can be used with images and other
types of file. JPEG Saver allows you to pick fields just by name
(e.g. %<subject>
) or by namespace and name
(e.g. %<dc:subject>
) to be more specific with which element to
pick.
These are just a few of the fields available. Those with the “dc” namespace are from the Dublin Core schema, and those with the “photoshop” namespace are from the Adobe Photoshop schema.
Token | Description |
---|---|
%<dc:creator> | Creator |
%<dc:title> | Title |
%<dc:subject> | Subject |
%<dc:description> | Description |
%<photoshop:DateCreated>{%c} | Creation date / time |
%<photoshop:Source> | Source |
%<photoshop:Credit> | Credit |
%<photoshop:Country> | Country |
The list info item
The list info item doesn't have many tokens. It tells you how many images JPEG Saver has in its list, and what position in the list the current image has.
Token | Description |
---|---|
%p | Position |
%c | Count |
%m | Metadata count |
The “%m” metadata count token reports the number of images that have been looked at by JPEG Saver and their width and height stored in the database.
The process info item
The process info item provides information about the JPEG Saver process itself.
Token | Description |
---|---|
%m | Memory usage |
%M | Peak memory usage |
%k | Kernel time |
%u | User time |
%T | Total time |
%p | Process priority class |
%t | Process thread priority |
%x | Current/last transition |
The version info item
The version info item displays information about the version of JPEG Saver that is running.
Token | Description |
---|---|
%V | Version string |
%v | Version number |
%f | Version |
%d | Compilation date |
%s | Mercurial revision number |
The now playing item
This item displays some information about the current track that is playing in some popular media player applications.
Token | Description |
---|---|
%a | Artist name |
%t | Track title |
%p | Media player name |