Filename Generation
Save… suggests a name made from a filename format: text with tokens in braces, such as {name}-optimized. Set the format for an image in the sidebar's Filename (Pro), and the format new images start with in Settings → General.
How it works
The extension always follows the save format (.png, .webp or .avif), so it isn't part of the filename format.
{name}-optimized → photo-optimized.png (the default)
- Case and spaces in a token don't matter.
{ NAME },{Name}and{name}are the same token. Your format is kept exactly as you type it. - A token that doesn't apply is left out, along with one separator next to it:
{name}-{quality}→photo.png(a PNG has no quality). - An unknown token stays as typed and is underlined in red in the field, so a typo is easy to spot:
{name}-{colours}→photo-{colours}.png. - Characters a filename can't have (
/ \ : * ? " < > |) become-. - Inserting tokens. Click Tokens under the field for the full list, or type
{for suggestions (↑ and ↓ to choose, Return or Tab to insert). The ? beside the field opens this reference in the app.
Tokens
The examples use a sample image: photo.png, 1024 × 768 at 144 DPI, made with pngquant at 256 colors, saved at 9:05:07 AM on March 14, 2026.
Source
| Token | What it is | Example |
|---|---|---|
{name} | Source filename, without its extension | photo |
{srcext} | Source's extension | png |
{srcsize} | Source dimensions (W×H) | 1024x768 |
Output
| Token | What it is | Example |
|---|---|---|
{format} | png, webp or avif | png |
{mode} | lossless or lossy (WebP, AVIF) | (empty here) |
{size} | Output dimensions, after trim and resize | 1024x768 |
{width} | Output width | 1024 |
{height} | Output height | 768 |
{scale} | Resize %, empty at 100% | (empty here) |
{trim} | "trimmed" when Trim is on | (empty here) |
{dpi} | Kept DPI, empty when stripped or unknown | 144 |
Method
| Token | What it is | Example |
|---|---|---|
{method} | pngquant, posterize, blurizer, lossy or original | pngquant |
{amount} | The method's value: colors, levels or tolerance | 256 |
{colors} | pngquant colors | 256 |
{levels} | Posterize/Blurizer levels | (empty here) |
{tolerance} | Lossy filter tolerance | (empty here) |
{quality} | WebP/AVIF lossy quality | (empty here) |
{dither} | Dither %, e.g. dither75; empty when off | dither100 |
{speed} | pngquant speed | 4 |
{minquality} | pngquant minimum quality, empty when off | (empty here) |
{posterize} | Posterize floor, e.g. rgb565; empty when off | (empty here) |
{effort} | Compression effort: fast, better or best | fast |
Time (when you press Save)
| Token | What it is | Example |
|---|---|---|
{date} | Save date: {ts:Y-m-d} | 2026-03-14 |
{time} | Save time: {ts:Hi} | 0905 |
{datetime} | Both: {ts:Y-m-d-Hi} | 2026-03-14-0905 |
For any other date or time layout, see Custom Timestamps.
Custom Timestamps
Use {ts:FORMAT} (or {timestamp:FORMAT}) with PHP date() codes for the time you press Save, in your computer's time zone.
- The token's name ignores case and spaces, but the format after the colon is case-sensitive:
mis the month andithe minutes. - Characters that aren't codes are kept as they are, and a backslash keeps a code letter as a letter (
\Wis a W). {ts}alone is Unix seconds.
{name}-{ts:Y-m-d} → photo-2026-03-14.png
{name}-{ts:Y-m-d_His} → photo-2026-03-14_090507.png
{name}-{ts:D-j-M} → photo-Sat-14-Mar.png
{name}-{ts:Y-\WW} → photo-2026-W11.png (the ISO week, with a literal W before it)
{name}-{ts} → photo-1773479107.png
A colon in a filename shows as a slash in Finder and isn't allowed on Windows, so
{ts:H:i}saves as09-05.
Day
| Code | What it is | Example |
|---|---|---|
d | Day of the month, 2 digits (01–31) | 14 |
j | Day of the month (1–31) | 14 |
D | Day name, 3 letters (Mon) | Sat |
l | Day name (Monday) | Saturday |
N | Day of the week, ISO (1 = Monday … 7) | 6 |
w | Day of the week (0 = Sunday … 6) | 6 |
S | English ordinal suffix (st, nd, rd, th) | th |
z | Day of the year (0–365) | 72 |
Week
| Code | What it is | Example |
|---|---|---|
W | ISO week number (01–53) | 11 |
Month
| Code | What it is | Example |
|---|---|---|
m | Month, 2 digits (01–12) | 03 |
n | Month (1–12) | 3 |
M | Month name, 3 letters (Jan) | Mar |
F | Month name (January) | March |
t | Days in the month (28–31) | 31 |
Year
| Code | What it is | Example |
|---|---|---|
Y | Year, 4 digits (2026) | 2026 |
y | Year, 2 digits (26) | 26 |
o | ISO week-numbering year | 2026 |
L | Leap year (1 or 0) | 0 |
Time
| Code | What it is | Example |
|---|---|---|
H | Hour, 24-hour, 2 digits (00–23) | 09 |
G | Hour, 24-hour (0–23) | 9 |
h | Hour, 12-hour, 2 digits (01–12) | 09 |
g | Hour, 12-hour (1–12) | 9 |
A | AM or PM | AM |
a | am or pm | am |
i | Minutes (00–59) | 05 |
s | Seconds (00–59) | 07 |
v | Milliseconds (000–999) | 000 |
u | Microseconds (000000–999999) | 000000 |
Time zone
| Code | What it is | Example |
|---|---|---|
e | Time zone name (America/Louisville) | |
T | Time zone abbreviation (EST) | |
P | Offset from UTC with a colon (-05:00) | |
O | Offset from UTC (-0500) |
Other
| Code | What it is | Example |
|---|---|---|
U | Unix seconds | 1773479107 |
\x | A backslash shows the next character as is (\T → T) |
This page as Markdown · all of the docs for agents in llms-full.txt