v5.0.0 — The 5.8 GB edition
Released: 2026-10-21 · Previous release: v4.1.0 (2026-08)
Breaking change. The repository history was rewritten on 2026-10-21. Every commit and tag has a new SHA, and ~480 files moved. Existing clones and forks can no longer
git pull— see Upgrading or MIGRATION.md.
At a glance
| v4.1.0 (Aug 2026) | v5.0.0 | |
|---|---|---|
| Git repository | 9.55 GB | 5.68 GiB |
| Checkout on disk | 10.23 GiB | 5.81 GiB |
| Images | 3,087 | 2,685 |
| Videos | 36 | 18 |
| Top-level folders | 27 | 28 |
| PNG files | 703 (4.0 GiB) | 0 |
| WebP files | 4 | 641 |
Every removed image was an exact duplicate of one that remains in the collection.
Why this release exists
The trigger was repository size: 9.55 GB of Git history for 10.23 GiB of files, and 99.6% of the objects in that history were simply the current files.
That has three consequences worth knowing:
git clone --depth 1did not help. A shallow clone only drops dead history, and the whole repository contained exactly 11 unreachable blobs.- Every clone, fork, backup and CI checkout paid the full 9.5 GB.
- Deleting files at the tip would not have shrunk anything, because old commits still referenced their blobs. Only a history rewrite could actually drop them.
Where the weight was:
| Component | Size | What we did |
|---|---|---|
| JPEG wallpapers | 5.48 GiB | kept untouched — a second lossy pass on photos is not worth ~1.8 GB |
| PNG art | 4.00 GiB / 703 files | re-encoded to WebP q92 → 0.39 GiB |
| HEIC | 0.54 GiB | kept — already efficient |
| MOV | 0.24 GiB | kept |
Year of 2021/
| 1.1 GiB / 421 files | deleted — byte-identical to 2021 Wallpaper/
|
Net: 3.6 GB from WebP, 1.1 GB from the duplicate tree, ~0.2 GB from pruning.
Breaking changes
- History rewritten. All 131 pre-existing commits and all 6 old tags have new SHAs. Messages, authors and dates are preserved; object IDs are not. Maintenance commits were added on top.
- Files moved. 483 files were relocated into device lanes. Old
raw.githubusercontent.comlinks now 404. - PNG → WebP. Every
.pngpath is now.webpin the same folder. Scripts that glob*.pngwill silently match nothing. - Duplicate tree removed.
Year of 2021/no longer exists — use2021 Wallpaper/.
What's new
Device lanes
| Folder | Images | Size | Contents |
|---|---|---|---|
Phone Wallpapers/
| 173 | 89.8 MiB | iOS/, Android/, NASA Artemis II/, Misc/
|
Ultrawide Wallpapers/
| 185 | 486 MiB | 21x9/ (142) · 32x9/ (33) · Panorama/ (10)
|
Social Assets/
| 125 | 21.2 MiB | The Crew 2 press kit, avatars, stray downloads |
Ultrawide criterion: aspect ratio ≥ 2.05:1 and at least 2560 × 1000.
WebP re-encode
- 703 PNG images → WebP quality 92
- 4.00 GiB → 0.39 GiB
- 121 ICC profiles and 95 alpha-channel images preserved
- JPEG, HEIC and MOV deliberately untouched
Tooling and documentation
scripts/stats.py— per-folder counts and sizes;--checkkeeps this README honest,--writefixes itscripts/build_gallery.py— local HTML gallery with lazy thumbnails (gallery/, gitignored)scripts/heic2jpg.sh— HEIC/HEIF → JPEG siblings for Windows/LinuxLICENSE(MIT for code and prose, plus a media licensing notice) andCONTRIBUTING.mdMIGRATION.md— what changed, fixes A–D, and the old → new path table
Quality report
Sample: 1600×900 Cyberpunk PNG → WebP q92.
| Metric | Value |
|---|---|
| PSNR | 38.06 dB |
| SSIM | 0.9823 |
Across a random 30-image sample: median 38.3 dB, minimum 32.1 dB. Indistinguishable at normal viewing distance; hard edges can look slightly soft at 1:1.
This is a lossy, one-way conversion — the original PNG masters are no longer in the repository. If you need them, recover them from an old clone before syncing.
Upgrading
| Your situation | What to do |
|---|---|
| Existing clone, no local commits | git fetch origin && git reset --hard origin/main
|
| Fork, no custom commits | GitHub → Sync fork → Discard commits |
| Fork with your own commits | git rebase --onto upstream/main 95d3b2c main
|
| Nothing yet | git clone --depth 1 https://github.com/MilesCorporate/The-Wallpaper-Collection.git
|
95d3b2c was the last commit of the old history. Full instructions, patch-based fallback and the old → new path table: MIGRATION.md.
Compatibility
| Format | Windows | macOS / Linux |
|---|---|---|
| WebP | Windows 11 native; Windows 10 needs WebP Image Extensions | native |
| HEIC / HEIF | needs the HEIF extension, or run scripts/heic2jpg.sh
| native |
Wallpaper Engine and older wallpaper tools generally accept static WebP, but verify before relying on it for dynamic sets.
Known issues
- 5.68 GB is still above GitHub's 5 GB comfort line. Going lower would mean re-encoding JPEGs (second-generation loss) or splitting the archive — neither is planned.
- 53 exact-duplicate groups (107 MiB) remain on purpose. These are copies inside curated sets (for example the Windows 11 theme folders referenced by
Desktop.ini), not accidents. - ~70 legacy images below 1280 px remain in
2018-2020 Wallpaper; a future cleanup candidate. - GitHub may keep reporting ~9 GB after the push until it garbage-collects the old objects. Fresh clones are already 5.7 GB.
- Old releases (v1.0.0–v4.1.0) now point at rewritten tags, so their ZIP/tarball contains WebP instead of PNG.
- One ultrawide filename collision was suffixed:
1201491 (2).jpg. v1.0.0was retired. It pointed at pre-2025 history that is not part of the current tree; keeping it alive would have kept 3.7 GB of superseded objects reachable.v2.0.0-v5.0.0are preserved.
Verification
git fsck --full— cleanpython3 scripts/stats.py --check— README matches the working treefind . -name '*.png'— zero results- 0 ultrawide images remain outside
Ultrawide Wallpapers/ - Every image's content matches its extension (HEIC excluded — the decoder was not available locally)
Links
README · Migration guide · Contributing · License
v5.0.0 — 5.8 GB 版本
发布: 2026-10-21 · 上一版: v4.1.0(2026-08)
破坏性变更: 仓库历史已于 2026-10-21 重写,所有 commit 与 tag 都换了 SHA,约 480 个文件迁移。旧的 clone / fork 无法直接
git pull,处理方法见 MIGRATION.md。
数字对比
| v4.1.0(2026-08) | v5.0.0 | |
|---|---|---|
| Git 仓库 | 9.55 GB | 5.68 GiB |
| 工作区 | 10.23 GiB | 5.81 GiB |
| 图片 | 3,087 | 2,685 |
| 视频 | 36 | 18 |
| 顶层文件夹 | 27 | 28 |
| PNG | 703 个(4.0 GiB) | 0 |
| WebP | 4 个 | 641 |
删掉的图片全部是"另一处仍有同一张"的重复,没有丢失独有内容。
为什么
历史里的 99.6% 对象就是当前文件,所以:
--depth 1无效——全库只有 11 个不可达对象;git gc无效——没有垃圾可回收;- 删文件也无效——旧 commit 仍引用着 blob。
只有重写历史,才能把那 3.6 GB 的 PNG 从 .git 里真正拿掉。 另外 1.1 GB 来自 Year of 2021/——它与 2021 Wallpaper/ 逐字节相同。
新增
| 通道 | 数量 | 内容 |
|---|---|---|
Phone Wallpapers/
| 173 张 | iOS / Android / NASA Artemis II / 杂项 |
Ultrawide Wallpapers/
| 185 张 | 21x9 142 · 32x9 33 · Panorama 10
|
Social Assets/
| 125 个 | The Crew 2 物料、头像、杂项下载 |
超宽判定:宽高比 ≥ 2.05:1 且 ≥ 2560×1000。
画质
样本 PSNR 38.06 dB / SSIM 0.9823;随机 30 张中位 38.3 dB、最低 32.1 dB。正常观看距离无差别,1:1 放大时硬边缘会略软。有损且不可逆,原始 PNG 母版已不在仓库中。
升级
| 你的情况 | 做法 |
|---|---|
| 普通 clone,无本地提交 | git fetch origin && git reset --hard origin/main
|
| fork,无自定义提交 | GitHub → Sync fork → Discard commits |
| fork,有自定义提交 | git rebase --onto upstream/main 95d3b2c main
|
| 还没 clone | git clone --depth 1 https://github.com/MilesCorporate/The-Wallpaper-Collection.git
|
完整步骤、patch 方案与"旧路径 → 新路径"对照表见 MIGRATION.md。
已知问题
- 5.68 GB 仍高于 GitHub 5 GB 建议线;要再降只能重编码 JPEG 或拆分仓库,目前都不做。
- 53 组精确重复(107 MiB)是有意保留的——套装内的副本(如
Desktop.ini引用的 Windows 11 主题),不是漏删。 2018-2020 Wallpaper里还有约 70 张 1280px 以下的旧图,留待后续清理。- 推送后 GitHub 网页体积可能仍显示约 9 GB,直到它回收旧对象;新 clone 已经是 5.7 GB。
- 旧版本(v1.0.0–v4.1.0)的 tag 已重写,其 ZIP 中是 WebP 而非 PNG。
- 一个超宽文件重名冲突,已加后缀:
1201491 (2).jpg。 v1.0.0已退役:它指向 2025 年 History cleared 之前的旁支,保留它会让 3.7 GB 旧对象一直可达;v2.0.0–v5.0.0保留。
验证
git fsck --full无错误python3 scripts/stats.py --check通过find . -name '*.png'结果为 0Ultrawide Wallpapers/之外无遗漏超宽图- 所有文件内容与扩展名一致(HEIC 除外,本地缺解码器)