Repository navigation
Store theme backgrounds as webp - #7477
Merged
Merged
Conversation
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]>
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)
Closed
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]>
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
quattroas 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
QImageReaderon a stock box:So a third-party theme shipping a
.webpbackground renders blank right now, even thoughomarchy-theme-set,omarchy-theme-switcher,omarchy-theme-bg-nextandomarchy-menu-imagesall already glob for the extension. This is a live bug independent of anything else here.qt6-imageformatssupplies the plugin: 71 KB downloaded, 370 KB installed. Its one dependency of substance,libwebp, is already on every machine by way oflibvips. With it in place: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:catppuccin/2-waves.webpflexoki-light/1-orb.webpnord/2-night-hawks.webpnord/1-city-view.webpmatte-black/2-dot-hands.webpcatppuccin/3-blue-eye.webpThis settles the one item left open in #7266.
catppuccin/2-wavesstayed 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-launchis 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:
tokyo-night/0-winding-road.webplupine/03-pastel-clouds.webplupine/01-cherry-blossom-bokeh.webphackerman/2-geometric.webpethereal/2-meadow.webpretro-82/5-zen-boat.webpretro-82/3-glassy-lines.webpEvery 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-backwatergoes 4031 KB → 5000 KB,kanagawa/1-kanagawa1586 KB → 2515 KB.Three are a more interesting failure.
hackerman/1-synth-scape,last-horizon/4-new-horizonsandmatte-black/0-ship-at-seaare grainy enough that webp's filter smooths the grain rather than coding it, and PSNR plateaus no matter how high the quality goes:Raising quality buys size, not fidelity, so they fall below the floor and keep their JPEGs. Worth flagging that
matte-black/0-ship-at-seaat 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:
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.shinstalls 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.
vantablackis the interesting one — mean luminance 0.001, because it genuinely is near-black, and its dot-hands pattern (a lossless,AE=0conversion) comes through clean.ristretto/0-launchcomposites its alpha correctly, with no banding or fringing on the curved bands.The lock screen, the other Qt consumer, reaches
secure=truewith 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:
The other decoders.
vipsthumbnailrenders 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=0against thequattrooriginal and lossy ones at ≥38 dB PSNR; pixel dimensions compared before and after on all 79; and all 92 shipped backgrounds pushed throughQImageReaderdirectly — 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-setcopies the theme into~/.local/state/omarchy/current/theme/andcurrent/backgroundpoints into that copy. An update replaces the files under/usr/share/omarchywithout touching a user's staged copy, so a live background cannot dangle. Nothing re-applies the theme duringomarchy-update, andomarchy-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.