Skip to content

Store theme backgrounds as webp - #7477

Merged
dhh merged 2 commits into
quattrofrom
backgrounds-webp
Aug 19, 2026
Merged

dhh merged 2 commits into
quattrofrom
backgrounds-webp

Conversation

@omarchybot

Copy link
Copy Markdown
Collaborator

Adds webp decoding to the shell, then moves the theme backgrounds onto it where it wins. 81.8 MB → 52.0 MB (-36.4%) against quattro as it stands today, and -51.4% counting the JPEG and oxipng passes in #7266 that landed before it.

The two commits are independent of each other: the first is a bug fix worth taking on its own, the second is the payoff it makes possible.

The shell cannot decode webp today

The background and the lock screen are drawn by Quickshell, so they go through Qt. Qt ships handlers for png, jpeg and gif, but webp lives in a separate module that we do not install. Probing QImageReader on a stock box:

supported formats: bmp cur gif ico jfif jpeg jpg pbm pdf pgm png ppm svg svgz xbm xpm
  test.webp    FAILED  (Unsupported image format)

So a third-party theme shipping a .webp background renders blank right now, even though omarchy-theme-set, omarchy-theme-switcher, omarchy-theme-bg-next and omarchy-menu-images all already glob for the extension. This is a live bug independent of anything else here.

qt6-imageformats supplies the plugin: 71 KB downloaded, 370 KB installed. Its one dependency of substance, libwebp, is already on every machine by way of libvips. With it in place:

supported formats: ... png ppm svg svgz tga tif tiff wbmp webp xbm xpm
  test.webp    OK      400x224

The migration is the same shape as the one that brought in libvips.

What converted

79 of 92 backgrounds. No image changes pixel dimensions.

28 become lossless webp — every one verified AE=0, bit-for-bit identical pixels, so there is no quality question to argue about:

file before after
catppuccin/2-waves.webp 994 KB 624 KB -37%
flexoki-light/1-orb.webp 237 KB 95 KB -60%
nord/2-night-hawks.webp 733 KB 682 KB -7%
nord/1-city-view.webp 377 KB 347 KB -8%
matte-black/2-dot-hands.webp 252 KB 231 KB -9%
catppuccin/3-blue-eye.webp 229 KB 212 KB -7%

This settles the one item left open in #7266. catppuccin/2-waves stayed PNG there because JPEG only cleared the bar at q88 and smooth gradients are exactly where PSNR is worst at catching banding. Lossless webp takes 37% off it with the pixels untouched, so the trade-off disappears.

ristretto/0-launch is in this group too, and its alpha channel comes through intact (min-alpha 0.333 before and after) — JPEG could never have taken that file.

51 become lossy webp, held to the same 38 dB PSNR floor used for the JPEG pass in #7266, landing between 38.0 and 54.6 dB (mean 42.9). 43 at q80, 8 at q85. The largest:

file before after quality
tokyo-night/0-winding-road.webp 4398 KB 638 KB -85% q80, 39.8 dB
lupine/03-pastel-clouds.webp 2373 KB 736 KB -69% q80, 39.9 dB
lupine/01-cherry-blossom-bokeh.webp 1847 KB 606 KB -67% q80, 41.9 dB
hackerman/2-geometric.webp 1891 KB 669 KB -65% q80, 39.1 dB
ethereal/2-meadow.webp 2200 KB 844 KB -62% q80, 39.1 dB
retro-82/5-zen-boat.webp 2523 KB 1188 KB -53% q80, 40.9 dB
retro-82/3-glassy-lines.webp 3517 KB 2319 KB -34% q85, 38.7 dB

Every file is encoded from the original as it stands in quattro, not from the JPEG #7266 produced, so nothing picks up a second generation of loss on the way here.

What did not convert

13 stay JPEG. For most, webp is simply bigger — gruvbox/1-the-backwater goes 4031 KB → 5000 KB, kanagawa/1-kanagawa 1586 KB → 2515 KB.

Three are a more interesting failure. hackerman/1-synth-scape, last-horizon/4-new-horizons and matte-black/0-ship-at-sea are grainy enough that webp's filter smooths the grain rather than coding it, and PSNR plateaus no matter how high the quality goes:

last-horizon/4-new-horizons   q90 → 32.43 dB   q93 → 32.81 dB   q95 → 32.97 dB
matte-black/0-ship-at-sea     q90 → 36.58 dB   q93 → 36.94 dB   q95 → 37.21 dB

Raising quality buys size, not fidelity, so they fall below the floor and keep their JPEGs. Worth flagging that matte-black/0-ship-at-sea at q90 would save 566 KB at 36.6 dB if you would rather have the bytes — but that is below the bar the rest of this work is held to, so I did not take it.

Verification

Verified end to end on a disposable Proxmox worker running a stock Omarchy 4.0.0 desktop from the current ISO, with the branch dev-linked so the compositor under test was serving this code.

The bug reproduces. With the branch linked and the plugin not yet installed, the desktop comes up with no wallpaper at all — bar and notifications draw fine, the background is simply absent. The shell says exactly why:

WARN scene: QML QQuickImage at .../shell/plugins/background/Background.qml[221:7]:
  Error decoding: .../current/theme/backgrounds/0-winding-road.webp: Unsupported image format
WARN scene: QML QQuickImage at .../shell/plugins/background/Background.qml[263:9]:
  Error decoding: .../background-transitions/next-1876.webp: Unsupported image format

Worth knowing that the failure is silent to the user in one case: a theme switch that lands on an undecodable background leaves the previous wallpaper on screen rather than erroring, so it looks like the switch half-worked. Only a fresh start shows the blank.

The migration fixes it. Running migrations/1787133200.sh installs the plugin, and after a shell restart the wallpaper renders. Comparing the rendered desktop against the same background rendered from its JPEG gives 37.6 dB PSNR on screen — the two are indistinguishable at display scale. From then on the journal records zero decode errors, including across a reboot.

All 22 themes. Each theme set in turn, screenshotted, and checked for real image content rather than a plausible-looking blank: every one renders, with per-theme luminance and standard deviation consistent with its artwork. vantablack is the interesting one — mean luminance 0.001, because it genuinely is near-black, and its dot-hands pattern (a lossless, AE=0 conversion) comes through clean. ristretto/0-launch composites its alpha correctly, with no banding or fringing on the curved bands.

The lock screen, the other Qt consumer, reaches secure=true with no image warnings. Hyprland blocks screencopy on a locked session, so this is log evidence rather than a screenshot — but since the same log demonstrably does record the decode failure, its absence here is meaningful.

Suites on real hardware, against a live compositor rather than a stub:

./test/cli    exit 0
./test/shell  2261 passed, 0 failed

The other decoders. vipsthumbnail renders a webp background to a thumbnail fine, and the theme switcher opens with its full preview carousel populated — no blank tiles. Those paths never needed the Qt plugin, which is why the picker kept working even while the wallpaper was blank.

Additionally, on the coordinator: lossless conversions verified AE=0 against the quattro original and lossy ones at ≥38 dB PSNR; pixel dimensions compared before and after on all 79; and all 92 shipped backgrounds pushed through QImageReader directly — 92/92 with the plugin, and without it exactly the 79 webp files fail while the 13 JPEGs pass.

Upgrade safety

Renaming is safe because themes are copied, not symlinked: omarchy-theme-set copies the theme into ~/.local/state/omarchy/current/theme/ and current/background points into that copy. An update replaces the files under /usr/share/omarchy without touching a user's staged copy, so a live background cannot dangle. Nothing re-applies the theme during omarchy-update, and omarchy-migrate — which installs the decoder — runs immediately after the package step, so the plugin is in place well before any theme switch can pull a webp in.

omarchybot and others added 2 commits August 19, 2026 03:53
The background and the lock screen are drawn by Quickshell, so they
decode through Qt, which ships handlers for png, jpeg and gif but not
webp. QImageReader answers "Unsupported image format" and the layer
comes up blank. Any third-party theme shipping a .webp background hits
this today, even though every path that goes looking for a background
already globs the extension.

qt6-imageformats supplies the missing plugin for 71 KB downloaded. Its
one new dependency of substance, libwebp, is already on every machine
by way of libvips.

Co-Authored-By: Claude Opus 5 <[email protected]>
WebP codes both of the things these backgrounds are made of better than
the formats they were in: the photographs, where its lossy mode is worth
a third or more over JPEG at matched quality, and the flat art and dot
patterns, where its lossless mode undercuts an oxipng-packed PNG.

28 of them become lossless webp and decode bit-for-bit identically
(AE=0), so the dot patterns and flat-shaded pieces carry no quality
question at all. That includes 0-launch, whose alpha channel comes
through intact. The other 51 are photographs held to the same 38 dB
PSNR floor as the JPEG pass, landing between 38.0 and 54.6 dB. Every
image keeps its exact pixel dimensions, for 29.8 MB.

Each one is encoded from the original as it stands in quattro rather
than from the file the earlier commits produced, so nothing picks up a
second generation of loss on the way here.

13 stay JPEG. WebP is plainly larger for most of them, and three are
grainy enough that its filter smooths the grain instead of coding it:
PSNR plateaus near 34 dB however high the quality goes, well under the
floor.

Co-Authored-By: Claude Opus 5 <[email protected]>
@dhh
dhh marked this pull request as ready for review August 19, 2026 12:20
Copilot AI balanced review requested due to automatic review settings August 19, 2026 12:20
@dhh
dhh merged commit a4219f8 into quattro Aug 19, 2026
3 of 4 checks passed
@dhh
dhh deleted the backgrounds-webp branch August 19, 2026 12:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

sgruendel pushed a commit to sgruendel/omarchy that referenced this pull request Aug 22, 2026
* Decode webp in the shell

The background and the lock screen are drawn by Quickshell, so they
decode through Qt, which ships handlers for png, jpeg and gif but not
webp. QImageReader answers "Unsupported image format" and the layer
comes up blank. Any third-party theme shipping a .webp background hits
this today, even though every path that goes looking for a background
already globs the extension.

qt6-imageformats supplies the missing plugin for 71 KB downloaded. Its
one new dependency of substance, libwebp, is already on every machine
by way of libvips.

Co-Authored-By: Claude Opus 5 <[email protected]>

* Store theme backgrounds as webp

WebP codes both of the things these backgrounds are made of better than
the formats they were in: the photographs, where its lossy mode is worth
a third or more over JPEG at matched quality, and the flat art and dot
patterns, where its lossless mode undercuts an oxipng-packed PNG.

28 of them become lossless webp and decode bit-for-bit identically
(AE=0), so the dot patterns and flat-shaded pieces carry no quality
question at all. That includes 0-launch, whose alpha channel comes
through intact. The other 51 are photographs held to the same 38 dB
PSNR floor as the JPEG pass, landing between 38.0 and 54.6 dB. Every
image keeps its exact pixel dimensions, for 29.8 MB.

Each one is encoded from the original as it stands in quattro rather
than from the file the earlier commits produced, so nothing picks up a
second generation of loss on the way here.

13 stay JPEG. WebP is plainly larger for most of them, and three are
grainy enough that its filter smooths the grain instead of coding it:
PSNR plateaus near 34 dB however high the quality goes, well under the
floor.

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

Co-authored-by: Claude Opus 5 <[email protected]>
dhh added a commit that referenced this pull request Aug 23, 2026
The background and the lock screen are drawn by Quickshell, so they decode
through Qt, which ships handlers for png, jpeg and gif but not webp. Any
third-party theme shipping a .webp background comes up blank without the
qt6-imageformats plugin, and extra themes are their own repositories.

Only the dependency is taken here. The background conversion that came with
it re-encodes all 79 bundled backgrounds, which 4.0.1 has no need of.

(cherry picked from commit a4219f8fbeb85ee7a2bc0e14eda9d38cc85d3d0d, dependency only)
@dhh dhh mentioned this pull request Aug 23, 2026
jnadeau207-collab pushed a commit to jnadeau207-collab/omarchy-7-ultimate that referenced this pull request Aug 26, 2026
* Decode webp in the shell

The background and the lock screen are drawn by Quickshell, so they
decode through Qt, which ships handlers for png, jpeg and gif but not
webp. QImageReader answers "Unsupported image format" and the layer
comes up blank. Any third-party theme shipping a .webp background hits
this today, even though every path that goes looking for a background
already globs the extension.

qt6-imageformats supplies the missing plugin for 71 KB downloaded. Its
one new dependency of substance, libwebp, is already on every machine
by way of libvips.

Co-Authored-By: Claude Opus 5 <[email protected]>

* Store theme backgrounds as webp

WebP codes both of the things these backgrounds are made of better than
the formats they were in: the photographs, where its lossy mode is worth
a third or more over JPEG at matched quality, and the flat art and dot
patterns, where its lossless mode undercuts an oxipng-packed PNG.

28 of them become lossless webp and decode bit-for-bit identically
(AE=0), so the dot patterns and flat-shaded pieces carry no quality
question at all. That includes 0-launch, whose alpha channel comes
through intact. The other 51 are photographs held to the same 38 dB
PSNR floor as the JPEG pass, landing between 38.0 and 54.6 dB. Every
image keeps its exact pixel dimensions, for 29.8 MB.

Each one is encoded from the original as it stands in quattro rather
than from the file the earlier commits produced, so nothing picks up a
second generation of loss on the way here.

13 stay JPEG. WebP is plainly larger for most of them, and three are
grainy enough that its filter smooths the grain instead of coding it:
PSNR plateaus near 34 dB however high the quality goes, well under the
floor.

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

Co-authored-by: Claude Opus 5 <[email protected]>
jnadeau207-collab pushed a commit to jnadeau207-collab/omarchy-7-ultimate that referenced this pull request Aug 28, 2026
* Decode webp in the shell

The background and the lock screen are drawn by Quickshell, so they
decode through Qt, which ships handlers for png, jpeg and gif but not
webp. QImageReader answers "Unsupported image format" and the layer
comes up blank. Any third-party theme shipping a .webp background hits
this today, even though every path that goes looking for a background
already globs the extension.

qt6-imageformats supplies the missing plugin for 71 KB downloaded. Its
one new dependency of substance, libwebp, is already on every machine
by way of libvips.

Co-Authored-By: Claude Opus 5 <[email protected]>

* Store theme backgrounds as webp

WebP codes both of the things these backgrounds are made of better than
the formats they were in: the photographs, where its lossy mode is worth
a third or more over JPEG at matched quality, and the flat art and dot
patterns, where its lossless mode undercuts an oxipng-packed PNG.

28 of them become lossless webp and decode bit-for-bit identically
(AE=0), so the dot patterns and flat-shaded pieces carry no quality
question at all. That includes 0-launch, whose alpha channel comes
through intact. The other 51 are photographs held to the same 38 dB
PSNR floor as the JPEG pass, landing between 38.0 and 54.6 dB. Every
image keeps its exact pixel dimensions, for 29.8 MB.

Each one is encoded from the original as it stands in quattro rather
than from the file the earlier commits produced, so nothing picks up a
second generation of loss on the way here.

13 stay JPEG. WebP is plainly larger for most of them, and three are
grainy enough that its filter smooths the grain instead of coding it:
PSNR plateaus near 34 dB however high the quality goes, well under the
floor.

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

Co-authored-by: Claude Opus 5 <[email protected]>
jnadeau207-collab pushed a commit to jnadeau207-collab/omarchy-7-ultimate that referenced this pull request Aug 29, 2026
* Decode webp in the shell

The background and the lock screen are drawn by Quickshell, so they
decode through Qt, which ships handlers for png, jpeg and gif but not
webp. QImageReader answers "Unsupported image format" and the layer
comes up blank. Any third-party theme shipping a .webp background hits
this today, even though every path that goes looking for a background
already globs the extension.

qt6-imageformats supplies the missing plugin for 71 KB downloaded. Its
one new dependency of substance, libwebp, is already on every machine
by way of libvips.

Co-Authored-By: Claude Opus 5 <[email protected]>

* Store theme backgrounds as webp

WebP codes both of the things these backgrounds are made of better than
the formats they were in: the photographs, where its lossy mode is worth
a third or more over JPEG at matched quality, and the flat art and dot
patterns, where its lossless mode undercuts an oxipng-packed PNG.

28 of them become lossless webp and decode bit-for-bit identically
(AE=0), so the dot patterns and flat-shaded pieces carry no quality
question at all. That includes 0-launch, whose alpha channel comes
through intact. The other 51 are photographs held to the same 38 dB
PSNR floor as the JPEG pass, landing between 38.0 and 54.6 dB. Every
image keeps its exact pixel dimensions, for 29.8 MB.

Each one is encoded from the original as it stands in quattro rather
than from the file the earlier commits produced, so nothing picks up a
second generation of loss on the way here.

13 stay JPEG. WebP is plainly larger for most of them, and three are
grainy enough that its filter smooths the grain instead of coding it:
PSNR plateaus near 34 dB however high the quality goes, well under the
floor.

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

Co-authored-by: Claude Opus 5 <[email protected]>
jnadeau207-collab pushed a commit to jnadeau207-collab/omarchy-7-ultimate that referenced this pull request Sep 2, 2026
* Decode webp in the shell

The background and the lock screen are drawn by Quickshell, so they
decode through Qt, which ships handlers for png, jpeg and gif but not
webp. QImageReader answers "Unsupported image format" and the layer
comes up blank. Any third-party theme shipping a .webp background hits
this today, even though every path that goes looking for a background
already globs the extension.

qt6-imageformats supplies the missing plugin for 71 KB downloaded. Its
one new dependency of substance, libwebp, is already on every machine
by way of libvips.

Co-Authored-By: Claude Opus 5 <[email protected]>

* Store theme backgrounds as webp

WebP codes both of the things these backgrounds are made of better than
the formats they were in: the photographs, where its lossy mode is worth
a third or more over JPEG at matched quality, and the flat art and dot
patterns, where its lossless mode undercuts an oxipng-packed PNG.

28 of them become lossless webp and decode bit-for-bit identically
(AE=0), so the dot patterns and flat-shaded pieces carry no quality
question at all. That includes 0-launch, whose alpha channel comes
through intact. The other 51 are photographs held to the same 38 dB
PSNR floor as the JPEG pass, landing between 38.0 and 54.6 dB. Every
image keeps its exact pixel dimensions, for 29.8 MB.

Each one is encoded from the original as it stands in quattro rather
than from the file the earlier commits produced, so nothing picks up a
second generation of loss on the way here.

13 stay JPEG. WebP is plainly larger for most of them, and three are
grainy enough that its filter smooths the grain instead of coding it:
PSNR plateaus near 34 dB however high the quality goes, well under the
floor.

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

Co-authored-by: Claude Opus 5 <[email protected]>
cursor Bot pushed a commit to jnadeau207-collab/omarchy-7-ultimate that referenced this pull request Sep 2, 2026
* Decode webp in the shell

The background and the lock screen are drawn by Quickshell, so they
decode through Qt, which ships handlers for png, jpeg and gif but not
webp. QImageReader answers "Unsupported image format" and the layer
comes up blank. Any third-party theme shipping a .webp background hits
this today, even though every path that goes looking for a background
already globs the extension.

qt6-imageformats supplies the missing plugin for 71 KB downloaded. Its
one new dependency of substance, libwebp, is already on every machine
by way of libvips.

Co-Authored-By: Claude Opus 5 <[email protected]>

* Store theme backgrounds as webp

WebP codes both of the things these backgrounds are made of better than
the formats they were in: the photographs, where its lossy mode is worth
a third or more over JPEG at matched quality, and the flat art and dot
patterns, where its lossless mode undercuts an oxipng-packed PNG.

28 of them become lossless webp and decode bit-for-bit identically
(AE=0), so the dot patterns and flat-shaded pieces carry no quality
question at all. That includes 0-launch, whose alpha channel comes
through intact. The other 51 are photographs held to the same 38 dB
PSNR floor as the JPEG pass, landing between 38.0 and 54.6 dB. Every
image keeps its exact pixel dimensions, for 29.8 MB.

Each one is encoded from the original as it stands in quattro rather
than from the file the earlier commits produced, so nothing picks up a
second generation of loss on the way here.

13 stay JPEG. WebP is plainly larger for most of them, and three are
grainy enough that its filter smooths the grain instead of coding it:
PSNR plateaus near 34 dB however high the quality goes, well under the
floor.

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

Co-authored-by: Claude Opus 5 <[email protected]>
cursor Bot pushed a commit to jnadeau207-collab/omarchy-7-ultimate that referenced this pull request Sep 2, 2026
* Decode webp in the shell

The background and the lock screen are drawn by Quickshell, so they
decode through Qt, which ships handlers for png, jpeg and gif but not
webp. QImageReader answers "Unsupported image format" and the layer
comes up blank. Any third-party theme shipping a .webp background hits
this today, even though every path that goes looking for a background
already globs the extension.

qt6-imageformats supplies the missing plugin for 71 KB downloaded. Its
one new dependency of substance, libwebp, is already on every machine
by way of libvips.

Co-Authored-By: Claude Opus 5 <[email protected]>

* Store theme backgrounds as webp

WebP codes both of the things these backgrounds are made of better than
the formats they were in: the photographs, where its lossy mode is worth
a third or more over JPEG at matched quality, and the flat art and dot
patterns, where its lossless mode undercuts an oxipng-packed PNG.

28 of them become lossless webp and decode bit-for-bit identically
(AE=0), so the dot patterns and flat-shaded pieces carry no quality
question at all. That includes 0-launch, whose alpha channel comes
through intact. The other 51 are photographs held to the same 38 dB
PSNR floor as the JPEG pass, landing between 38.0 and 54.6 dB. Every
image keeps its exact pixel dimensions, for 29.8 MB.

Each one is encoded from the original as it stands in quattro rather
than from the file the earlier commits produced, so nothing picks up a
second generation of loss on the way here.

13 stay JPEG. WebP is plainly larger for most of them, and three are
grainy enough that its filter smooths the grain instead of coding it:
PSNR plateaus near 34 dB however high the quality goes, well under the
floor.

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

Co-authored-by: Claude Opus 5 <[email protected]>
jnadeau207-collab pushed a commit to jnadeau207-collab/omarchy-7-ultimate that referenced this pull request Sep 3, 2026
* Decode webp in the shell

The background and the lock screen are drawn by Quickshell, so they
decode through Qt, which ships handlers for png, jpeg and gif but not
webp. QImageReader answers "Unsupported image format" and the layer
comes up blank. Any third-party theme shipping a .webp background hits
this today, even though every path that goes looking for a background
already globs the extension.

qt6-imageformats supplies the missing plugin for 71 KB downloaded. Its
one new dependency of substance, libwebp, is already on every machine
by way of libvips.

Co-Authored-By: Claude Opus 5 <[email protected]>

* Store theme backgrounds as webp

WebP codes both of the things these backgrounds are made of better than
the formats they were in: the photographs, where its lossy mode is worth
a third or more over JPEG at matched quality, and the flat art and dot
patterns, where its lossless mode undercuts an oxipng-packed PNG.

28 of them become lossless webp and decode bit-for-bit identically
(AE=0), so the dot patterns and flat-shaded pieces carry no quality
question at all. That includes 0-launch, whose alpha channel comes
through intact. The other 51 are photographs held to the same 38 dB
PSNR floor as the JPEG pass, landing between 38.0 and 54.6 dB. Every
image keeps its exact pixel dimensions, for 29.8 MB.

Each one is encoded from the original as it stands in quattro rather
than from the file the earlier commits produced, so nothing picks up a
second generation of loss on the way here.

13 stay JPEG. WebP is plainly larger for most of them, and three are
grainy enough that its filter smooths the grain instead of coding it:
PSNR plateaus near 34 dB however high the quality goes, well under the
floor.

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

Co-authored-by: Claude Opus 5 <[email protected]>
nick1udwig pushed a commit to nick1udwig/omarchy that referenced this pull request Sep 9, 2026
* Decode webp in the shell

The background and the lock screen are drawn by Quickshell, so they
decode through Qt, which ships handlers for png, jpeg and gif but not
webp. QImageReader answers "Unsupported image format" and the layer
comes up blank. Any third-party theme shipping a .webp background hits
this today, even though every path that goes looking for a background
already globs the extension.

qt6-imageformats supplies the missing plugin for 71 KB downloaded. Its
one new dependency of substance, libwebp, is already on every machine
by way of libvips.

Co-Authored-By: Claude Opus 5 <[email protected]>

* Store theme backgrounds as webp

WebP codes both of the things these backgrounds are made of better than
the formats they were in: the photographs, where its lossy mode is worth
a third or more over JPEG at matched quality, and the flat art and dot
patterns, where its lossless mode undercuts an oxipng-packed PNG.

28 of them become lossless webp and decode bit-for-bit identically
(AE=0), so the dot patterns and flat-shaded pieces carry no quality
question at all. That includes 0-launch, whose alpha channel comes
through intact. The other 51 are photographs held to the same 38 dB
PSNR floor as the JPEG pass, landing between 38.0 and 54.6 dB. Every
image keeps its exact pixel dimensions, for 29.8 MB.

Each one is encoded from the original as it stands in quattro rather
than from the file the earlier commits produced, so nothing picks up a
second generation of loss on the way here.

13 stay JPEG. WebP is plainly larger for most of them, and three are
grainy enough that its filter smooths the grain instead of coding it:
PSNR plateaus near 34 dB however high the quality goes, well under the
floor.

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

Co-authored-by: Claude Opus 5 <[email protected]>
@emirb emirb added this to the 4.5 milestone Oct 17, 2026
omarchybot pushed a commit to omacom/omarchy-themes-backgrounds that referenced this pull request Nov 30, 2026
Seven stills lost the grain that kept their gradients smooth when they were converted to lossy WebP at a 38 dB floor (omacom/omarchy#7477), and have shown hard, blocky bands since. Rebuild each from the earliest generation in omarchy's history, with the grain kept and +-1 LSB dither added, encoded lossless where lossy WebP brings the bands back. catppuccin-latte/1-color-fade returns to its original PNG's exact pixels.

The recipe is .github/scripts/dither, and AGENTS.md lists the stills so a later size pass does not undo this.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants