diff --git a/.github/release-notes.md b/.github/release-notes.md
index 6d68bcf..f231e1f 100644
--- a/.github/release-notes.md
+++ b/.github/release-notes.md
@@ -1,31 +1,26 @@
-## Vantage 1.2 — stable, vertical-ready, 10× the library
+## Vantage 1.3 — sharper, lighter
-**Website:** https://vantagewall.vercel.app
+**Website:** https://vantage-wallpapers.vercel.app
### Downloads
| Platform | File |
|:--|:--|
-| macOS · Apple Silicon (M1–M5) | `Vantage-1.2.0-arm64.dmg` |
-| macOS · Intel | `Vantage-1.2.0-x64.dmg` |
-| Windows 10/11 · x64 | `Vantage-Setup-1.2.0-x64.exe` |
-| Windows 11 · ARM | `Vantage-Setup-1.2.0-arm64.exe` |
-
-### Fixed
-- **Windows:** wallpapers now actually sit behind your desktop icons. In 1.1 the attach step failed and left a black full-screen window on top of everything.
-- **Windows:** bundled and imported videos now load (local file URLs were broken on Windows drive paths).
-- **macOS:** wallpapers no longer draw over full-screen apps, and never flash black or blank while loading. The gallery always appears, even on GPUs that never report "ready".
-- Streaming wallpapers show their preview while downloading instead of a black screen.
-- Battery Saver no longer plays videos in slow motion.
-- **Anime in one place:** 274 wallpapers moved to their correct category using MotionBGS's own tags.
+| macOS · Apple Silicon (M1–M5) | `Vantage-1.3.0-arm64.dmg` |
+| macOS · Intel | `Vantage-1.3.0-x64.dmg` |
+| Windows 10/11 · x64 | `Vantage-Setup-1.3.0-x64.exe` |
+| Windows 11 · ARM | `Vantage-Setup-1.3.0-arm64.exe` |
### New
-- **13,000+ wallpapers** (up from 1,330), with thumbnails streamed so the installer doesn't grow.
-- **Vertical monitors:** 3,300+ 9:16 wallpapers, a Vertical collection with tall tiles, a rotated display icon, a hint when your selected display is vertical, and Shuffle that picks wallpapers matching the display's orientation.
-- **MoeWalls:** linked from My Imports and Credits. Download there, drop the file into the watched folder, and it appears automatically.
-- Faster launches: the catalog is only re-synced when it changes.
+- **2K & 4K only:** the library now contains only wallpapers at least 1440 px on both edges — 7,300+ sharp wallpapers.
+- **New bundled 4K wallpapers:** *Lu Guang × Cheng Xiaoshi (Link Click)* and *Raphtalia — The Rising of the Shield Hero*, available offline.
+- **Save first frame:** turn any 2K/4K video into a full-quality still wallpaper; stills share a lightweight thumbnail and can be deleted and restored.
+- **Lighter:** video dimensions and thumbnails are read with Electron itself instead of external tools.
+
+### Changed
+- 1080p and 720×1280 vertical wallpapers are no longer listed (below the new quality floor), so the Vertical section is hidden until 2K+ vertical wallpapers are added.
### First launch
-- **Mac:** Vantage isn't notarized by Apple yet. If macOS says it can't verify the app, open **System Settings → Privacy & Security** and click **Open Anyway**.
-- **Windows:** the installer isn't code-signed yet; on SmartScreen choose **More info → Run anyway**.
+- **Mac:** not notarized yet — if macOS can't verify the app, open **System Settings → Privacy & Security** and click **Open Anyway**.
+- **Windows:** not code-signed yet — on SmartScreen choose **More info → Run anyway**.
-Every build is launched as a fresh install on clean macOS and Windows machines in CI before release (gallery, catalog, every wallpaper window, desktop attach).
+Tested as a fresh install on clean macOS and Windows machines before release.
diff --git a/.gitignore b/.gitignore
index ba3431c..9cb9c95 100644
--- a/.gitignore
+++ b/.gitignore
@@ -44,3 +44,4 @@ resources/icons/icon.png
# Crawl caches
scripts/.cache/
+.env*
diff --git a/README.md b/README.md
index adba392..5c3d99a 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
-
+
@@ -11,63 +11,84 @@
Your desktop, alive.
- Free, open-source live wallpapers. 13,000+ motion wallpapers — including 3,300+ vertical ones for rotated monitors — procedural GPU scenes, every display — without slowing your machine down.
+ Free, open-source live wallpapers for macOS and Windows.
+ 7,300+ 2K & 4K motion wallpapers, live GPU scenes, every display — without slowing your machine down.
-
+
+
-
- Website ·
+ Website ·
Download ·
+ What's new ·
Features ·
- Generative ·
Build ·
Contributors
-
+
---
+## 📑 Contents
+
+- [What's new in 1.3](#-whats-new-in-13)
+- [Why Vantage](#-why-vantage)
+- [Features](#-features)
+- [Download & first launch](#-download--first-launch)
+- [The website](#-the-website)
+- [Build from source](#%EF%B8%8F-build-from-source)
+- [How it works](#%EF%B8%8F-how-it-works)
+- [Testing](#-testing)
+- [Roadmap](#%EF%B8%8F-roadmap) · [Contributors](#-contributors) · [License](#-license)
+
+## 🆕 What's new in 1.3
+
+- **2K & 4K only:** the library now ships only wallpapers at least 1440 px on both edges — 7,300+ sharp wallpapers instead of 13,000 mixed ones.
+- **New bundled wallpapers:** *Lu Guang × Cheng Xiaoshi (Link Click)* and *Raphtalia — The Rising of the Shield Hero*, in 4K, available offline.
+- **Save first frame:** turn any 2K/4K video wallpaper into a full-quality still with one click; stills share a lightweight thumbnail and can be deleted and restored.
+- **Faster, lighter library:** dimensions and thumbnails are read from the videos themselves instead of external tools, and catalog syncing is cached.
+- Everything from 1.2: Windows desktop attach fix, macOS full-screen fix, MotionBGS library with categories from its own tags.
+
## ✨ Why Vantage
-- 🖥️ **Every display, its own world** — assign a different wallpaper to each monitor; hot-plug a screen and Vantage picks up where it left off.
-- ⚡ **4K that sips power** — videos stream straight from disk with HTTP range requests, and Vantage drops to battery-saver cadence the moment you unplug.
-- 🌌 **Generative scenes** — 8 GPU shader wallpapers render live and react to your cursor. Nothing to download, and they never loop.
-- 📂 **Bring your own** — import MP4, MOV, WebM, PNG, JPG or WebP, or drop files into a watched folder and they appear instantly.
-- 🎛️ **Out of your way** — lives in the menu bar and the Dock (hide the Dock icon any time), pause or swap from the tray, ⌘K to search 13,000+ wallpapers.
+- 🖥️ **Every display, its own world** — a different wallpaper per monitor; hot-plug a screen and Vantage picks up where it left off.
+- ⚡ **4K that sips power** — videos stream from disk with HTTP range requests, and Vantage drops to battery-saver cadence when you unplug.
+- 🌌 **Generative scenes** — 8 GPU shader wallpapers render live and react to your cursor. Nothing to download, never loops.
+- 📂 **Bring your own** — import MP4, MOV, WebM, PNG, JPG or WebP, or drop files into a watched folder.
+- 🎛️ **Out of your way** — menu bar + Dock (hide the Dock icon any time), ⌘K search, Shuffle.
- 🔓 **Free & open source** — MIT licensed, no account, no tracking.
-
+
## 📸 Features
-
-
+
+
+ Detail & apply 4K preview, source and license, per-display Set, Save first frame. ← → to browse.
Generative canvases Procedural scenes rendered on your GPU, previewed live in the grid.
- Detail & apply Streaming preview, source and license, set per display. ← → to browse.
-
+
On your actual desktop Iris Bloom running live behind your icons.
- Preferences Energy mode per display, Dock & login options, cache control.
+ Preferences Energy mode per display, Dock & login, cache control.
@@ -76,72 +97,54 @@
| | |
|:--|:--|
-| **Library** | 13,000+ wallpapers (3,300+ vertical) across Anime, Gaming, Heroes & Comics, Nature, Space, Cars & Streets, Digital Art, Generative and your own Still Images |
-| **Gallery** | Now Playing banner with Shuffle, live display cards, category counts, ⌘K search, sort by featured / A–Z / resolution, two grid densities, hover-to-preview, one-click **Set**, favorites |
+| **Library** | 7,300+ 2K/4K wallpapers across Anime, Gaming, Heroes & Comics, Nature, Space, Cars & Streets, Digital Art and Generative, plus your own imports and stills |
+| **Gallery** | Now Playing with Shuffle, display cards, category counts, ⌘K search, sort, two grid sizes, hover-to-preview, one-click **Set**, favorites |
+| **Stills** | Save the first frame of any 2K/4K video as a full-quality still wallpaper |
| **Multi-monitor** | Independent wallpaper and energy mode per display, apply to all, hot-plug aware |
-| **Energy** | Quality (60 fps), Balanced (30 fps), Battery (15 fps); shaders also lower their render resolution; automatic battery-saver when unplugged |
-| **Streaming** | Custom `media://` protocol with HTTP 206 range requests; downloaded wallpapers cached on disk with a configurable limit |
-| **Imports** | File picker (⌘O) or the watched `~/Pictures/Vantage Wallpapers/` folder (videos) and its `Static/` subfolder (images) |
-| **macOS** | Desktop-level windows behind your icons, menu bar + Dock (toggle the Dock icon from the menu bar), native Screen Saver companion for the Lock Screen |
-| **Windows (beta)** | Wallpaper attached behind desktop icons via WorkerW, tray menu, NSIS installer |
+| **Energy** | Quality (60 fps), Balanced (30 fps), Battery (15 fps); shaders lower their render resolution too; automatic saver on battery |
+| **Streaming** | `media://local/` protocol with HTTP 206 range requests; downloads cached on disk with a configurable limit |
+| **Imports** | ⌘O, or drop files into `~/Pictures/Vantage Wallpapers/` (videos) and its `Static/` folder (images) |
+| **macOS** | Behind your icons, never over full-screen apps; menu bar + Dock; native Screen Saver companion |
+| **Windows** | Behind your desktop icons via WorkerW; tray menu; NSIS installer |
-## 🌌 Generative wallpapers
-
-Rendered in real time by GLSL shaders (`src/renderer/shared/shaders.ts`). They follow your cursor and scale their resolution with the energy mode.
+### 🌌 Generative wallpapers
| | | | |
|:--:|:--:|:--:|:--:|
| **Iris Bloom** | **Liquid Chrome** | **Silk Waves** | **Neon Horizon** |
-| Aperture kaleidoscope | Domain-warped metal | Layered pastel bands | Synthwave sun & grid |
| **Ink Nebula** | **Warp Drive** | **Aurora Veil** | **Lava Lamp** |
-| Drifting clouds & stars | Light-speed streaks | Northern lights | Metaballs that chase the cursor |
-Plus three classic canvas scenes: **Quantum Field**, **Aurora Flow** and **Nebula Drift**.
+Plus **Quantum Field**, **Aurora Flow** and **Nebula Drift**. Rendered by GLSL shaders in [`src/renderer/shared/shaders.ts`](src/renderer/shared/shaders.ts).
-
-
-
+## 📥 Download & first launch
-## 📥 Download
-
-| Platform | Get it | Notes |
+| Platform | File | |
|:--|:--|:--|
-| 🍏 **macOS** (Apple Silicon & Intel) | [Latest release](https://github.com/JayDev-27/Vantage/releases/latest) | Open the `.dmg` and drag Vantage to Applications |
-| 🪟 **Windows 10/11** (beta) | [Latest release](https://github.com/JayDev-27/Vantage/releases/latest) | Run `Vantage-Setup-…-x64.exe` (or `-arm64.exe`). The installer isn't code-signed yet, so SmartScreen may ask you to confirm |
+| 🍏 macOS · Apple Silicon (M1–M5) | `Vantage-1.3.0-arm64.dmg` | [Latest release](https://github.com/JayDev-27/Vantage/releases/latest) |
+| 🍏 macOS · Intel | `Vantage-1.3.0-x64.dmg` | [Latest release](https://github.com/JayDev-27/Vantage/releases/latest) |
+| 🪟 Windows 10/11 · x64 | `Vantage-Setup-1.3.0-x64.exe` | [Latest release](https://github.com/JayDev-27/Vantage/releases/latest) |
+| 🪟 Windows 11 · ARM | `Vantage-Setup-1.3.0-arm64.exe` | [Latest release](https://github.com/JayDev-27/Vantage/releases/latest) |
+
+Or visit **[vantage-wallpapers.vercel.app](https://vantage-wallpapers.vercel.app)** — the download button picks the right file for your computer.
> [!NOTE]
-> **First launch on a Mac:** Vantage isn't notarized by Apple yet. If macOS says it can't verify the app, open **System Settings → Privacy & Security**, scroll down and click **Open Anyway**. Use the **Apple Silicon** `.dmg` on M-series Macs and the **Intel** one on older Macs.
+> **Mac:** Vantage isn't notarized by Apple yet. If macOS says it can't verify the app, open **System Settings → Privacy & Security** and click **Open Anyway**.
>
-> **Windows:** the installer isn't code-signed yet; if SmartScreen appears, choose **More info → Run anyway**.
-
-Or visit **[vantagewall.vercel.app](https://vantagewall.vercel.app)** — the download button picks the right file for your Mac.
+> **Windows:** the installer isn't code-signed yet; on SmartScreen choose **More info → Run anyway**.
## 🌐 The website
-The landing page lives in [`website/`](website/README.md): a Three.js / WebGL scroll experience. A 3D monitor plays a wallpaper, the camera dives into the screen, the Vantage aperture falls through a tunnel lined with real wallpapers, and you land on the download.
+The landing page in [`website/`](website/README.md) is a Three.js / WebGL scroll experience: a 3D monitor plays a wallpaper, the camera dives into the screen, a glass window of live wallpapers falls through a tunnel, and you land on the download.
-
-
## 🛠️ Build from source
-**Requirements:** Node.js 20.19+ and npm. Building the macOS Screen Saver companion needs Xcode command-line tools.
+**Requirements:** Node.js 20.19+ and npm. The macOS Screen Saver companion needs Xcode command-line tools.
```bash
git clone https://github.com/JayDev-27/Vantage.git
@@ -157,13 +160,14 @@ npm run dev
|:--|:--|
| `npm run dev` | Run the app with hot reload |
| `npm run typecheck` | TypeScript check across main, preload and renderer |
-| `npm run preview:ui` | Preview the gallery UI in a browser with a mocked API — no Electron needed (`http://localhost:5181/gallery.html`) |
-| `npm run audit:catalog` | Report category mistakes, duplicates and missing files in the wallpaper catalog (`--write` fixes, `--links` checks every URL) |
-| `npm run dist:mac` | Build `.dmg` + `.zip` for Apple Silicon and Intel |
-| `npm run dist:win` | Build the NSIS installer for Windows x64 / arm64 (run on Windows or CI) |
+| `npm run preview:ui` | Gallery UI in a browser with a mocked API (`http://localhost:5181/gallery.html`) |
+| `npm run audit:catalog` | Check the catalog for category mistakes, duplicates and missing files |
+| `node scripts/import-motionbgs.mjs` | Refresh the MotionBGS part of the catalog (`--write` to save) |
+| `node scripts/smoke-test.mjs ` | Launch a built app as a fresh install and verify it (see [Testing](#-testing)) |
+| `npm run dist:mac` / `npm run dist:win` | Build installers |
| `npm --prefix website run dev` | Run the website locally |
-Pushing a `v*` tag runs [`.github/workflows/release.yml`](.github/workflows/release.yml), which builds macOS and Windows installers and attaches them to a draft release.
+Pushing a `v*` tag runs [`release.yml`](.github/workflows/release.yml), which builds macOS and Windows installers into a draft release.
@@ -173,14 +177,13 @@ Pushing a `v*` tag runs [`.github/workflows/release.yml`](.github/workflows/rele
flowchart LR
subgraph Main["Electron main process"]
DB[(SQLite catalog)]
- MP["media:// range streaming"]
+ MP["media://local range streaming"]
+ FF[First-frame stills]
PW[Power & display observer]
- TR[Tray & Dock]
end
subgraph Wall["Wallpaper window — behind desktop icons"]
V[Video layer]
S[GPU shader layer]
- C[Canvas layer]
end
subgraph Gal["Gallery window — React + Tailwind"]
G[Browse · search · apply]
@@ -190,49 +193,35 @@ flowchart LR
MP --> V
```
-
-Tech stack & folder structure
-
-**Stack:** Electron 43 · React 18 · TypeScript · Tailwind CSS · Vite (`electron-vite`) · better-sqlite3 · Lucide icons · koffi (Windows desktop attach) · Three.js + Lenis (website)
+**Stack:** Electron 43 · React 18 · TypeScript · Tailwind CSS · electron-vite · better-sqlite3 · koffi (Windows) · Three.js + Lenis (website)
-```
-Vantage/
-├── src/
-│ ├── main/ # Electron main: DB, IPC, tray, dock, power, wallpaper windows
-│ │ └── platform/ # Windows desktop attach (WorkerW)
-│ ├── preload/ # Context bridges
-│ └── renderer/
-│ ├── gallery/ # Gallery UI (screens, components, store)
-│ ├── wallpaper/ # Video, shader and canvas wallpaper layers
-│ └── shared/ # GLSL shader library
-├── resources/ # Catalog, bundled wallpapers, thumbnails, icons
-├── native/ # macOS Screen Saver companion (Swift)
-├── scripts/ # Icon, screen saver and catalog tooling
-└── website/ # Landing page (Vite + Three.js)
-```
+## 🧪 Testing
-
+Every pull request and release runs [`smoke.yml`](.github/workflows/smoke.yml): the app is built and launched as a **fresh install on clean macOS and Windows machines**, then checked over DevTools — gallery opens, catalog loads, tiles render, first-frame stills save and restore, every display gets a playing wallpaper, it sits behind the desktop icons on Windows, and the log has no fatal errors.
## 🗺️ Roadmap
-- [x] Redesigned gallery with Now Playing, Shuffle and ⌘K search
+- [x] Redesigned gallery, Shuffle, ⌘K search
- [x] GPU shader wallpapers
-- [x] Catalog audit and recategorization
-- [x] Landing page with download links that resolve the latest release
-- [x] First Windows release (beta)
+- [x] Windows support with desktop attach
+- [x] Sandbox smoke tests on macOS and Windows
+- [x] 2K/4K-only library and first-frame stills
- [ ] Developer ID signing and notarization for macOS
+- [ ] Code signing for Windows
- [ ] Playlists and timed rotation
-- [ ] More procedural scenes
## 🤝 Contributors
@@ -241,7 +230,7 @@ Contributions are welcome — open an [issue](https://github.com/JayDev-27/Vanta
## 🙏 Acknowledgements
-- Most of the streamed video catalog comes from [MotionBGS](https://motionbgs.com). Wallpaper artwork belongs to its original creators and rights holders.
+- Most of the streamed catalog comes from [MotionBGS](https://motionbgs.com); some bundled wallpapers come from [MoeWalls](https://moewalls.com). Artwork belongs to its original creators and rights holders.
- Built with [Electron](https://www.electronjs.org/), [React](https://react.dev/), [Tailwind CSS](https://tailwindcss.com/), [Three.js](https://threejs.org/) and [Lenis](https://lenis.darkroom.engineering/).
## 📄 License
@@ -250,5 +239,5 @@ Contributions are welcome — open an [issue](https://github.com/JayDev-27/Vanta
-
If Vantage made your desktop a little more alive, consider giving it a ⭐ · Back to top ↑
+
If Vantage made your desktop a little more alive, give it a ⭐ · Back to top ↑
diff --git a/assets/screenshots/app-detail.jpg b/assets/screenshots/app-detail.jpg
index f6f5b23..60f866b 100644
Binary files a/assets/screenshots/app-detail.jpg and b/assets/screenshots/app-detail.jpg differ
diff --git a/assets/screenshots/app-discover.jpg b/assets/screenshots/app-discover.jpg
index ed5ebc9..e183f48 100644
Binary files a/assets/screenshots/app-discover.jpg and b/assets/screenshots/app-discover.jpg differ
diff --git a/package-lock.json b/package-lock.json
index cab0148..e726a5d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "vantage",
- "version": "1.2.0",
+ "version": "1.3.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "vantage",
- "version": "1.2.0",
+ "version": "1.3.0",
"hasInstallScript": true,
"dependencies": {
"better-sqlite3": "^13.1.1",
diff --git a/package.json b/package.json
index 50f9a95..037b75e 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "vantage",
- "version": "1.2.0",
+ "version": "1.3.0",
"description": "A free, native live wallpaper app for macOS",
"main": "./out/main/index.js",
"author": "Vantage Team",
diff --git a/resources/catalog.json b/resources/catalog.json
index 5333e74..3786df1 100644
--- a/resources/catalog.json
+++ b/resources/catalog.json
@@ -15,6 +15,38 @@
"license": "Wallpaper X Extracted Collection",
"attribution": "Extracted from Wallpaper X (user-owned)"
},
+ {
+ "id": "shield-hero-raphtalia-comet",
+ "title": "Raphtalia Under the Comet (The Rising of the Shield Hero)",
+ "category": "anime",
+ "type": "video",
+ "previewUrl": "resources/thumbnails/shield-hero-raphtalia-comet.jpg",
+ "sourceUrl": "extracted/shield-hero-raphtalia-comet.mp4",
+ "resolution": {
+ "width": 3840,
+ "height": 2160
+ },
+ "duration": 9.51,
+ "source": "local",
+ "license": "Free wallpaper download",
+ "attribution": "Artwork by TofuMang · animation via LiveWallpapers4Free"
+ },
+ {
+ "id": "link-click-time-photo-studio",
+ "title": "Lu Guang × Cheng Xiaoshi (Link Click)",
+ "category": "anime",
+ "type": "video",
+ "previewUrl": "resources/thumbnails/link-click-lu-guang-cheng-xiaoshi.jpg",
+ "sourceUrl": "extracted/link-click-lu-guang-cheng-xiaoshi.mp4",
+ "resolution": {
+ "width": 3840,
+ "height": 2160
+ },
+ "duration": 28.33,
+ "source": "local",
+ "license": "Free wallpaper download",
+ "attribution": "MoeWalls"
+ },
{
"id": "wallpaperx-v295",
"title": "Cozy Gaming Room",
@@ -18658,7 +18690,7 @@
{
"id": "motionbgs-child-of-the-night-sky",
"title": "Child of the Night Sky",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "resources/thumbnails/motionbgs-child-of-the-night-sky.jpg",
"sourceUrl": "https://motionbgs.com/media/8933/child-of-the-night-sky.3840x2160.mp4",
@@ -22315,7 +22347,7 @@
{
"id": "motionbgs-goblin-slayer-maiden",
"title": "Goblin Slayer & Maiden",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/10446/goblin-slayer-maiden.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/10446/goblin-slayer-maiden.3840x2160.mp4",
@@ -23515,7 +23547,7 @@
{
"id": "motionbgs-bound-by-sorrow",
"title": "Bound by Sorrow",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/10260/bound-by-sorrow.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/10260/bound-by-sorrow.3840x2160.mp4",
@@ -23845,7 +23877,7 @@
{
"id": "motionbgs-moonlit-ink-dance",
"title": "Moonlit Ink Dance",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/10328/moonlit-ink-dance.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/10328/moonlit-ink-dance.3840x2160.mp4",
@@ -26905,7 +26937,7 @@
{
"id": "motionbgs-midnight-passenger",
"title": "Midnight Passenger",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/10103/midnight-passenger.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/10103/midnight-passenger.3840x2160.mp4",
@@ -27055,7 +27087,7 @@
{
"id": "motionbgs-where-whales-fly",
"title": "Where Whales Fly",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/10094/where-whales-fly.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/10094/where-whales-fly.3840x2160.mp4",
@@ -27265,7 +27297,7 @@
{
"id": "motionbgs-yuno-grinberryall",
"title": "Yuno Grinberryall (Black Clover)",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/10070/yuno-grinberryall.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/10070/yuno-grinberryall.3840x2160.mp4",
@@ -27940,7 +27972,7 @@
{
"id": "motionbgs-twixxel",
"title": "Twixxel",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/9909/twixxel.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/9909/twixxel.3840x2160.mp4",
@@ -28180,7 +28212,7 @@
{
"id": "motionbgs-oni-mask-warrior",
"title": "Oni Mask Warrior Girl",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/9987/oni-mask-warrior.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/9987/oni-mask-warrior.3840x2160.mp4",
@@ -28945,7 +28977,7 @@
{
"id": "motionbgs-chinese-opera-warrior",
"title": "Chinese Opera Warrior",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/9884/chinese-opera-warrior.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/9884/chinese-opera-warrior.3840x2160.mp4",
@@ -29620,7 +29652,7 @@
{
"id": "motionbgs-shadow-cut-reverie",
"title": "Shadow Cut Reverie",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/9483/shadow-cut-reverie.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/9483/shadow-cut-reverie.3840x2160.mp4",
@@ -29785,7 +29817,7 @@
{
"id": "motionbgs-oni-blade-elegance",
"title": "Oni Blade Elegance",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/9504/oni-blade-elegance.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/9504/oni-blade-elegance.3840x2160.mp4",
@@ -30115,7 +30147,7 @@
{
"id": "motionbgs-monochrome-daydreams",
"title": "Monochrome Daydreams",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/9693/monochrome-daydreams.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/9693/monochrome-daydreams.3840x2160.mp4",
@@ -30745,7 +30777,7 @@
{
"id": "motionbgs-shirou-ogami-bna",
"title": "Shirou Ogami (Brand New Animal)",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/9626/shirou-ogami-bna.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/9626/shirou-ogami-bna.3840x2160.mp4",
@@ -31075,7 +31107,7 @@
{
"id": "motionbgs-han-li",
"title": "Han Li - Mortal Is Journey to Immortality",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/9547/han-li.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/9547/han-li.3840x2160.mp4",
@@ -32965,7 +32997,7 @@
{
"id": "motionbgs-urban-life-street-view",
"title": "Urban Life Street View",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/9369/urban-life-street-view.1920x1080.jpg",
"sourceUrl": "https://motionbgs.com/media/9369/urban-life-street-view.1920x1080.mp4",
@@ -34210,7 +34242,7 @@
{
"id": "motionbgs-crimson-spirit-of-the-shrine",
"title": "Crimson Spirit of the Shrine",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/9203/crimson-spirit-of-the-shrine.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/9203/crimson-spirit-of-the-shrine.3840x2160.mp4",
@@ -35185,7 +35217,7 @@
{
"id": "motionbgs-ghosts-of-utopia",
"title": "Ghosts of Utopia",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/9030/ghosts-of-utopia.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/9030/ghosts-of-utopia.3840x2160.mp4",
@@ -35605,7 +35637,7 @@
{
"id": "motionbgs-asuka-langley-scarlet-unit",
"title": "Asuka Langley Scarlet Unit",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/9116/asuka-langley-scarlet-unit.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/9116/asuka-langley-scarlet-unit.3840x2160.mp4",
@@ -35620,7 +35652,7 @@
{
"id": "motionbgs-qin-shi-huang-record-of-ragnarok",
"title": "Qin Shi Huang - Record of Ragnarok",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/9110/qin-shi-huang-record-of-ragnarok.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/9110/qin-shi-huang-record-of-ragnarok.3840x2160.mp4",
@@ -35755,7 +35787,7 @@
{
"id": "motionbgs-floating-islands",
"title": "Floating Islands",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/9096/floating-islands.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/9096/floating-islands.3840x2160.mp4",
@@ -36370,7 +36402,7 @@
{
"id": "motionbgs-desolate-yume-wallhack",
"title": "Desolate Yume - Wallhack",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/9022/desolate-yume-wallhack.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/9022/desolate-yume-wallhack.3840x2160.mp4",
@@ -36520,7 +36552,7 @@
{
"id": "motionbgs-moonlit-solitude",
"title": "Moonlit Solitude",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/7874/moonlit-solitude.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/7874/moonlit-solitude.3840x2160.mp4",
@@ -37315,7 +37347,7 @@
{
"id": "motionbgs-dragonbound-silence",
"title": "Dragonbound Silence",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/7884/dragonbound-silence.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/7884/dragonbound-silence.3840x2160.mp4",
@@ -38470,7 +38502,7 @@
{
"id": "motionbgs-moonlit-blade-of-fate",
"title": "Moonlit Blade of Fate",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/8905/moonlit-blade-of-fate.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/8905/moonlit-blade-of-fate.3840x2160.mp4",
@@ -38875,7 +38907,7 @@
{
"id": "motionbgs-good-day-chronicle",
"title": "Good Day Chronicle",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/7842/good-day-chronicle.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/7842/good-day-chronicle.3840x2160.mp4",
@@ -39250,7 +39282,7 @@
{
"id": "motionbgs-sad-maomao-alone",
"title": "Sad Maomao Alone",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/8180/sad-maomao-alone.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/8180/sad-maomao-alone.3840x2160.mp4",
@@ -39670,7 +39702,7 @@
{
"id": "motionbgs-nanakusa-nazuna",
"title": "Nazuna Laughing in the Dark",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/8796/nanakusa-nazuna.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/8796/nanakusa-nazuna.3840x2160.mp4",
@@ -40210,7 +40242,7 @@
{
"id": "motionbgs-reverend-insanity",
"title": "Reverend Insanity",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/8217/reverend-insanity.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/8217/reverend-insanity.3840x2160.mp4",
@@ -41890,7 +41922,7 @@
{
"id": "motionbgs-moe-shop-moe-moe",
"title": "Moe Shop - Moe Moe",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/8653/moe-shop-moe-moe.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/8653/moe-shop-moe-moe.3840x2160.mp4",
@@ -42985,7 +43017,7 @@
{
"id": "motionbgs-wang-ning-a-mortals-journey-to-immortality",
"title": "Wang Ning (A Mortal's Journey to Immortality)",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/8591/wang-ning-a-mortals-journey-to-immortality.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/8591/wang-ning-a-mortals-journey-to-immortality.3840x2160.mp4",
@@ -43255,7 +43287,7 @@
{
"id": "motionbgs-mortals-journey-to-immortality",
"title": "Mortal's Journey to Immortality",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/8584/mortals-journey-to-immortality.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/8584/mortals-journey-to-immortality.3840x2160.mp4",
@@ -44275,7 +44307,7 @@
{
"id": "motionbgs-escanor-sunshine-nanatsu-no-taizai",
"title": "Escanor Sunshine (Nanatsu No Taizai)",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/8226/escanor-sunshine-nanatsu-no-taizai.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/8226/escanor-sunshine-nanatsu-no-taizai.3840x2160.mp4",
@@ -44470,7 +44502,7 @@
{
"id": "motionbgs-echoes-of-the-ancient-sky",
"title": "Echoes of the Ancient Sky",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/8479/echoes-of-the-ancient-sky.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/8479/echoes-of-the-ancient-sky.3840x2160.mp4",
@@ -45670,7 +45702,7 @@
{
"id": "motionbgs-blonde-knight",
"title": "Celestial Blade Maiden",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/8351/blonde-knight.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/8351/blonde-knight.3840x2160.mp4",
@@ -46825,7 +46857,7 @@
{
"id": "motionbgs-osaragi-noodles",
"title": "Assassin Osaragi With Ramen Noodles (Sakamoto Days)",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/8403/osaragi-noodles.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/8403/osaragi-noodles.3840x2160.mp4",
@@ -49795,7 +49827,7 @@
{
"id": "motionbgs-detective-conan",
"title": "Detective Conan",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/8128/detective-conan.1920x1080.jpg",
"sourceUrl": "https://motionbgs.com/media/8128/detective-conan.1920x1080.mp4",
@@ -50290,7 +50322,7 @@
{
"id": "motionbgs-doraemon",
"title": "Doraemon Sky Adventure",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/8125/doraemon.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/8125/doraemon.3840x2160.mp4",
@@ -53125,7 +53157,7 @@
{
"id": "motionbgs-girls-solitude-in-cityscape",
"title": "Girl’s Solitude in Cityscape",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/7360/girls-solitude-in-cityscape.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/7360/girls-solitude-in-cityscape.3840x2160.mp4",
@@ -53860,7 +53892,7 @@
{
"id": "motionbgs-silence-of-the-ronin",
"title": "Silence of the Ronin",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/7788/silence-of-the-ronin.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/7788/silence-of-the-ronin.3840x2160.mp4",
@@ -54100,7 +54132,7 @@
{
"id": "motionbgs-through-the-heaven",
"title": "Through the Heaven",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/7777/through-the-heaven.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/7777/through-the-heaven.3840x2160.mp4",
@@ -54925,7 +54957,7 @@
{
"id": "motionbgs-glitch-girl",
"title": "Glitch Girl",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/7732/glitch-girl.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/7732/glitch-girl.3840x2160.mp4",
@@ -56020,7 +56052,7 @@
{
"id": "motionbgs-curious-cats",
"title": "Curious Cats",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/7662/curious-cats.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/7662/curious-cats.3840x2160.mp4",
@@ -56545,7 +56577,7 @@
{
"id": "motionbgs-samurai-bw",
"title": "Grace Under the Blade",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/7133/samurai-bw.jpg",
"sourceUrl": "https://motionbgs.com/media/7133/samurai-bw.3840x2160.mp4",
@@ -58240,7 +58272,7 @@
{
"id": "motionbgs-alone-under-night-sky-4k",
"title": "Alone Under Night Sky",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/7441/alone-under-night-sky-4k.3840x2160.jpg",
"sourceUrl": "https://motionbgs.com/media/7441/alone-under-night-sky-4k.3840x2160.mp4",
@@ -58525,7 +58557,7 @@
{
"id": "motionbgs-morning-coffee",
"title": "Morning Coffee",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/7032/morning-coffee.jpg",
"sourceUrl": "https://motionbgs.com/media/7032/morning-coffee.3840x2160.mp4",
@@ -59860,7 +59892,7 @@
{
"id": "motionbgs-swordsman-blue",
"title": "Blue-Hued Swordsman Girl",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/6928/swordsman-blue.jpg",
"sourceUrl": "https://motionbgs.com/media/6928/swordsman-blue.3840x2160.mp4",
@@ -60880,7 +60912,7 @@
{
"id": "motionbgs-yomu-yakadashi-art",
"title": "Yomu Yakadashi Art",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/6866/yomu-yakadashi-art.jpg",
"sourceUrl": "https://motionbgs.com/media/6866/yomu-yakadashi-art.3840x2160.mp4",
@@ -61150,7 +61182,7 @@
{
"id": "motionbgs-girl-on-bike",
"title": "Rider in Motion",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/7216/girl-on-bike.jpg",
"sourceUrl": "https://motionbgs.com/media/7216/girl-on-bike.3840x2160.mp4",
@@ -61945,7 +61977,7 @@
{
"id": "motionbgs-devilgirl-phonk",
"title": "Devilgirl (Phonk)",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/6793/devilgirl-phonk.jpg",
"sourceUrl": "https://motionbgs.com/media/6793/devilgirl-phonk.3840x2160.mp4",
@@ -62380,7 +62412,7 @@
{
"id": "motionbgs-an-unequal-fight-guweiz-art",
"title": "An Unequal Fight (Guweiz Art)",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/7029/an-unequal-fight-guweiz-art.jpg",
"sourceUrl": "https://motionbgs.com/media/7029/an-unequal-fight-guweiz-art.3840x2160.mp4",
@@ -63865,7 +63897,7 @@
{
"id": "motionbgs-corgi-sleeping",
"title": "Corgi Sleeping",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/5685/corgi-sleeping.jpg",
"sourceUrl": "https://motionbgs.com/media/5685/corgi-sleeping.3840x2160.mp4",
@@ -63955,7 +63987,7 @@
{
"id": "motionbgs-halloween-lofi-cat",
"title": "Halloween Lofi Cat",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/6688/halloween-lofi-cat.jpg",
"sourceUrl": "https://motionbgs.com/media/6688/halloween-lofi-cat.3840x2160.mp4",
@@ -64240,7 +64272,7 @@
{
"id": "motionbgs-girl-katana",
"title": "Grace and Steel",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/6661/girl-katana.jpg",
"sourceUrl": "https://motionbgs.com/media/6661/girl-katana.3840x2160.mp4",
@@ -64585,7 +64617,7 @@
{
"id": "motionbgs-crimson-moon-samurai",
"title": "Crimson Moon Samurai",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/6637/crimson-moon-samurai.jpg",
"sourceUrl": "https://motionbgs.com/media/6637/crimson-moon-samurai.3840x2160.mp4",
@@ -65080,7 +65112,7 @@
{
"id": "motionbgs-samurai-chihiro",
"title": "Samurai Chihiro",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/6601/samurai-chihiro.jpg",
"sourceUrl": "https://motionbgs.com/media/6601/samurai-chihiro.3840x2160.mp4",
@@ -67915,7 +67947,7 @@
{
"id": "motionbgs-control",
"title": "Control",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/6375/control.jpg",
"sourceUrl": "https://motionbgs.com/media/6375/control.3840x2160.mp4",
@@ -68125,7 +68157,7 @@
{
"id": "motionbgs-the-falling-boy",
"title": "The Falling Boy",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/6357/the-falling-boy.jpg",
"sourceUrl": "https://motionbgs.com/media/6357/the-falling-boy.3840x2160.mp4",
@@ -68545,7 +68577,7 @@
{
"id": "motionbgs-juice-wrld",
"title": "Juice WRLD",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/6323/juice-wrld.jpg",
"sourceUrl": "https://motionbgs.com/media/6323/juice-wrld.3840x2160.mp4",
@@ -70045,7 +70077,7 @@
{
"id": "motionbgs-pilot-dream",
"title": "Pilot Dream",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/6178/pilot-dream.jpg",
"sourceUrl": "https://motionbgs.com/media/6178/pilot-dream.3840x2160.mp4",
@@ -71860,7 +71892,7 @@
{
"id": "motionbgs-evening-chill",
"title": "Evening Chill",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/5983/evening-chill.jpg",
"sourceUrl": "https://motionbgs.com/media/5983/evening-chill.3840x2160.mp4",
@@ -72475,7 +72507,7 @@
{
"id": "motionbgs-mash-dance-mashle",
"title": "Mash Dance (Mashle)",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/5934/mash-dance-mashle.jpg",
"sourceUrl": "https://motionbgs.com/media/5934/mash-dance-mashle.3840x2160.mp4",
@@ -74035,7 +74067,7 @@
{
"id": "motionbgs-claymore-clare",
"title": "Claymore Clare",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/5581/claymore-clare.jpg",
"sourceUrl": "https://motionbgs.com/media/5581/claymore-clare.3840x2160.mp4",
@@ -75550,7 +75582,7 @@
{
"id": "motionbgs-corgi-fun",
"title": "Corgi Fun",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/5695/corgi-fun.jpg",
"sourceUrl": "https://motionbgs.com/media/5695/corgi-fun.1920x1080.mp4",
@@ -77650,7 +77682,7 @@
{
"id": "motionbgs-corgi-flying-balloon",
"title": "Corgi Flying Balloon",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/5689/corgi-flying-balloon.jpg",
"sourceUrl": "https://motionbgs.com/media/5689/corgi-flying-balloon.3840x2160.mp4",
@@ -78280,7 +78312,7 @@
{
"id": "motionbgs-cat-under-rain",
"title": "Cat Under Rain",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/5682/cat-under-rain.jpg",
"sourceUrl": "https://motionbgs.com/media/5682/cat-under-rain.3840x2160.mp4",
@@ -78370,7 +78402,7 @@
{
"id": "motionbgs-little-corgi",
"title": "Little Corgi",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/5694/little-corgi.jpg",
"sourceUrl": "https://motionbgs.com/media/5694/little-corgi.1920x1080.mp4",
@@ -78715,7 +78747,7 @@
{
"id": "motionbgs-ninja-woman-with-sword",
"title": "Ninja Woman With Sword",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/5668/ninja-woman-with-sword.jpg",
"sourceUrl": "https://motionbgs.com/media/5668/ninja-woman-with-sword.3840x2160.mp4",
@@ -84250,7 +84282,7 @@
{
"id": "motionbgs-samurai-demon-mask",
"title": "Samurai Demon Mask",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/4847/samurai-demon-mask.jpg",
"sourceUrl": "https://motionbgs.com/media/4847/samurai-demon-mask.3840x2160.mp4",
@@ -84400,7 +84432,7 @@
{
"id": "motionbgs-demon-girl-with-dragon",
"title": "Demon Girl With Dragon",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/4839/demon-girl-with-dragon.jpg",
"sourceUrl": "https://motionbgs.com/media/4839/demon-girl-with-dragon.3840x2160.mp4",
@@ -85705,7 +85737,7 @@
{
"id": "motionbgs-azure-moon-samurai",
"title": "Azure Moon Samurai",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/4794/azure-moon-samurai.jpg",
"sourceUrl": "https://motionbgs.com/media/4794/azure-moon-samurai.3840x2160.mp4",
@@ -85945,7 +85977,7 @@
{
"id": "motionbgs-warrior-boy",
"title": "Warrior Boy",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/5240/warrior-boy.jpg",
"sourceUrl": "https://motionbgs.com/media/5240/warrior-boy.3840x2160.mp4",
@@ -88780,7 +88812,7 @@
{
"id": "motionbgs-cats-in-love",
"title": "Cats in Love",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/4651/cats-in-love.jpg",
"sourceUrl": "https://motionbgs.com/media/4651/cats-in-love.3840x2160.mp4",
@@ -89110,7 +89142,7 @@
{
"id": "motionbgs-cute-city",
"title": "Cute City",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/4626/cute-city.jpg",
"sourceUrl": "https://motionbgs.com/media/4626/cute-city.3840x2160.mp4",
@@ -89155,7 +89187,7 @@
{
"id": "motionbgs-girl-with-tiny-robot",
"title": "Girl With Tiny Robot",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/4629/girl-with-tiny-robot.jpg",
"sourceUrl": "https://motionbgs.com/media/4629/girl-with-tiny-robot.3840x2160.mp4",
@@ -90010,7 +90042,7 @@
{
"id": "motionbgs-emerald-inferno-samurai-and-dragon",
"title": "Emerald Inferno: Samurai and Dragon",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/4715/emerald-inferno-samurai-and-dragon.jpg",
"sourceUrl": "https://motionbgs.com/media/4715/emerald-inferno-samurai-and-dragon.3840x2160.mp4",
@@ -90490,7 +90522,7 @@
{
"id": "motionbgs-battle-through-the-heavens",
"title": "Battle Through the Heavens",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/4532/battle-through-the-heavens.jpg",
"sourceUrl": "https://motionbgs.com/media/4532/battle-through-the-heavens.3840x2160.mp4",
@@ -91045,7 +91077,7 @@
{
"id": "motionbgs-shinra-fire-force",
"title": "Shinra (Fire Force)",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/4542/shinra-fire-force.jpg",
"sourceUrl": "https://motionbgs.com/media/4542/shinra-fire-force.3840x2160.mp4",
@@ -91585,7 +91617,7 @@
{
"id": "motionbgs-cute-furry",
"title": "Cute Furry",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/4450/cute-furry.jpg",
"sourceUrl": "https://motionbgs.com/media/4450/cute-furry.3840x2160.mp4",
@@ -93745,7 +93777,7 @@
{
"id": "motionbgs-japan-nature",
"title": "Japan Nature",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/4302/japan-nature.jpg",
"sourceUrl": "https://motionbgs.com/media/4302/japan-nature.3840x2160.mp4",
@@ -94495,7 +94527,7 @@
{
"id": "motionbgs-sunny-snooze-with-a-corgi",
"title": "Sunny Snooze With a Corgi",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/4242/sunny-snooze-with-a-corgi.jpg",
"sourceUrl": "https://motionbgs.com/media/4242/sunny-snooze-with-a-corgi.1920x1080.mp4",
@@ -94540,7 +94572,7 @@
{
"id": "motionbgs-corgi-dog-samurai",
"title": "Corgi Dog Samurai",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/4241/corgi-dog-samurai.jpg",
"sourceUrl": "https://motionbgs.com/media/4241/corgi-dog-samurai.3840x2160.mp4",
@@ -94555,7 +94587,7 @@
{
"id": "motionbgs-doggie-corgi",
"title": "Doggie Corgi",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/4240/doggie-corgi.jpg",
"sourceUrl": "https://motionbgs.com/media/4240/doggie-corgi.3840x2160.mp4",
@@ -94660,7 +94692,7 @@
{
"id": "motionbgs-kamijou-touma",
"title": "Kamijou Touma",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/4233/kamijou-touma.jpg",
"sourceUrl": "https://motionbgs.com/media/4233/kamijou-touma.3840x2160.mp4",
@@ -94900,7 +94932,7 @@
{
"id": "motionbgs-straw-hat-shinobi-girl",
"title": "Straw Hat Shinobi Girl",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/4213/straw-hat-shinobi-girl.jpg",
"sourceUrl": "https://motionbgs.com/media/4213/straw-hat-shinobi-girl.3840x2160.mp4",
@@ -95005,7 +95037,7 @@
{
"id": "motionbgs-straw-hat-samurai",
"title": "Straw Hat Samurai",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/4211/straw-hat-samurai.jpg",
"sourceUrl": "https://motionbgs.com/media/4211/straw-hat-samurai.3840x2160.mp4",
@@ -95035,7 +95067,7 @@
{
"id": "motionbgs-masked-ronin-beauty",
"title": "Masked Ronin Beauty",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/4210/masked-ronin-beauty.jpg",
"sourceUrl": "https://motionbgs.com/media/4210/masked-ronin-beauty.3840x2160.mp4",
@@ -98905,7 +98937,7 @@
{
"id": "motionbgs-shuttle-by-wlop",
"title": "Shuttle (By WLOP)",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/3372/shuttle-by-wlop.jpg",
"sourceUrl": "https://motionbgs.com/media/3372/shuttle-by-wlop.1920x1080.mp4",
@@ -99715,7 +99747,7 @@
{
"id": "motionbgs-konosuba-megumin",
"title": "Konosuba (Megumin)",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/2775/konosuba-megumin.jpg",
"sourceUrl": "https://motionbgs.com/media/2775/konosuba-megumin.3840x2160.mp4",
@@ -100915,7 +100947,7 @@
{
"id": "motionbgs-nostalgia-mixtape",
"title": "Nostalgia Mixtape",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/2641/nostalgia-mixtape.jpg",
"sourceUrl": "https://motionbgs.com/media/2641/nostalgia-mixtape.3840x2160.mp4",
@@ -101395,7 +101427,7 @@
{
"id": "motionbgs-girls-silent-night-watch",
"title": "Girl's Silent Night Watch",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/2605/girls-silent-night-watch.jpg",
"sourceUrl": "https://motionbgs.com/media/2605/girls-silent-night-watch.1920x1080.mp4",
@@ -102955,7 +102987,7 @@
{
"id": "motionbgs-dragon-in-clouds",
"title": "Dragon in Clouds",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/2423/dragon-in-clouds.jpg",
"sourceUrl": "https://motionbgs.com/media/2423/dragon-in-clouds.3840x2160.mp4",
@@ -105130,7 +105162,7 @@
{
"id": "motionbgs-christmas-cafe",
"title": "Christmas Cafe",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/3852/christmas-cafe.jpg",
"sourceUrl": "https://motionbgs.com/media/3852/christmas-cafe.3840x2160.mp4",
@@ -107875,7 +107907,7 @@
{
"id": "motionbgs-lofi-cafe-in-evening",
"title": "Lofi Cafe in Evening",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/3695/lofi-cafe-in-evening.jpg",
"sourceUrl": "https://motionbgs.com/media/3695/lofi-cafe-in-evening.3840x2160.mp4",
@@ -108070,7 +108102,7 @@
{
"id": "motionbgs-goblin-slayer-red-eye",
"title": "Goblin Slayer Red Eye",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/3687/goblin-slayer-red-eye.jpg",
"sourceUrl": "https://motionbgs.com/media/3687/goblin-slayer-red-eye.3840x2160.mp4",
@@ -109165,7 +109197,7 @@
{
"id": "motionbgs-dragon-flying",
"title": "Dragon Flying",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/3594/dragon-flying.jpg",
"sourceUrl": "https://motionbgs.com/media/3594/dragon-flying.3840x2160.mp4",
@@ -111340,7 +111372,7 @@
{
"id": "motionbgs-fallen-samurai",
"title": "Fallen Samurai",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/3404/fallen-samurai.jpg",
"sourceUrl": "https://motionbgs.com/media/3404/fallen-samurai.3840x2160.mp4",
@@ -111535,7 +111567,7 @@
{
"id": "motionbgs-cute-corgi",
"title": "Cute Corgi",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/3427/cute-corgi.jpg",
"sourceUrl": "https://motionbgs.com/media/3427/cute-corgi.3840x2160.mp4",
@@ -111700,7 +111732,7 @@
{
"id": "motionbgs-ne-zha",
"title": "Ne Zha",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/3380/ne-zha.jpg",
"sourceUrl": "https://motionbgs.com/media/3380/ne-zha.1920x1080.mp4",
@@ -115840,7 +115872,7 @@
{
"id": "motionbgs-japanese-street",
"title": "Japanese Street",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/3038/japanese-street.jpg",
"sourceUrl": "https://motionbgs.com/media/3038/japanese-street.1920x1080.mp4",
@@ -116035,7 +116067,7 @@
{
"id": "motionbgs-abandoned-railway-station",
"title": "Abandoned Railway Station",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/3017/abandoned-railway-station.jpg",
"sourceUrl": "https://motionbgs.com/media/3017/abandoned-railway-station.1920x1080.mp4",
@@ -118180,7 +118212,7 @@
{
"id": "motionbgs-train-crossing-the-majestic-bridge",
"title": "Train Crossing the Majestic Bridge",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/2783/train-crossing-the-majestic-bridge.jpg",
"sourceUrl": "https://motionbgs.com/media/2783/train-crossing-the-majestic-bridge.3840x2160.mp4",
@@ -118750,7 +118782,7 @@
{
"id": "motionbgs-tram-in-japan-city",
"title": "Tram in Japan City",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/2608/tram-in-japan-city.jpg",
"sourceUrl": "https://motionbgs.com/media/2608/tram-in-japan-city.1920x1080.mp4",
@@ -118810,7 +118842,7 @@
{
"id": "motionbgs-lofi-coffee-shop",
"title": "LoFi Coffee Shop",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/2623/lofi-coffee-shop.jpg",
"sourceUrl": "https://motionbgs.com/media/2623/lofi-coffee-shop.1920x1080.mp4",
@@ -123130,7 +123162,7 @@
{
"id": "motionbgs-pigeon-relaxing",
"title": "Pigeon Relaxing",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/1966/pigeon-relaxing.jpg",
"sourceUrl": "https://motionbgs.com/media/1966/pigeon-relaxing.1920x1080.mp4",
@@ -129730,7 +129762,7 @@
{
"id": "motionbgs-blue-aesthetic-widgets",
"title": "BLUE Aesthetic Widgets",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/1433/blue-aesthetic-widgets.jpg",
"sourceUrl": "https://motionbgs.com/media/1433/blue-aesthetic-widgets.3840x2160.mp4",
@@ -129760,7 +129792,7 @@
{
"id": "motionbgs-aesthetic-tokyo-with-cat-on-the-roof",
"title": "Aesthetic Tokyo With Cat on the Roof",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/1427/aesthetic-tokyo-with-cat-on-the-roof.jpg",
"sourceUrl": "https://motionbgs.com/media/1427/aesthetic-tokyo-with-cat-on-the-roof.3840x2160.mp4",
@@ -129970,7 +130002,7 @@
{
"id": "motionbgs-emiya-fatestay-night",
"title": "Emiya (Fate/Stay Night)",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/1418/emiya-fatestay-night.jpg",
"sourceUrl": "https://motionbgs.com/media/1418/emiya-fatestay-night.3840x2160.mp4",
@@ -145510,7 +145542,7 @@
{
"id": "motionbgs-monolith-fantasy",
"title": "Monolith Fantasy",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/82/monolith-fantasy.jpg",
"sourceUrl": "https://motionbgs.com/media/82/monolith-fantasy.1920x1080.mp4",
@@ -145825,7 +145857,7 @@
{
"id": "motionbgs-urban-girl",
"title": "Urban Girl",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/112/urban-girl.1920x1080.jpg",
"sourceUrl": "https://motionbgs.com/media/112/urban-girl.1920x1080.mp4",
@@ -146230,7 +146262,7 @@
{
"id": "motionbgs-lofi-girl",
"title": "Lofi Girl",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/71/lofi-girl.1920x1080.jpg",
"sourceUrl": "https://motionbgs.com/media/71/lofi-girl.1920x1080.mp4",
@@ -146590,7 +146622,7 @@
{
"id": "motionbgs-witch-admires-the-butterfly",
"title": "Witch Admires the Butterfly",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/23/witch-admires-the-butterfly.1920x1080.jpg",
"sourceUrl": "https://motionbgs.com/media/23/witch-admires-the-butterfly.1920x1080.mp4",
@@ -146710,7 +146742,7 @@
{
"id": "motionbgs-samurai-girl3",
"title": "Samurai Girl With Dagger Eyes",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/546x308/media/17/samurai-girl3.1920x1080.jpg",
"sourceUrl": "https://motionbgs.com/media/17/samurai-girl3.1920x1080.mp4",
@@ -149155,7 +149187,7 @@
{
"id": "motionbgs-p-bound-by-sorrow",
"title": "Bound by Sorrow",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/10260/bound-by-sorrow.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/10260/bound-by-sorrow.720x1280.mp4",
@@ -149695,7 +149727,7 @@
{
"id": "motionbgs-p-moonlit-ink-dance",
"title": "Moonlit Ink Dance",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/10328/moonlit-ink-dance.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/10328/moonlit-ink-dance.720x1280.mp4",
@@ -149770,7 +149802,7 @@
{
"id": "motionbgs-p-where-whales-fly",
"title": "Where Whales Fly",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/10094/where-whales-fly.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/10094/where-whales-fly.720x1280.mp4",
@@ -151405,7 +151437,7 @@
{
"id": "motionbgs-p-oni-mask-warrior",
"title": "Oni Mask Warrior Girl",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/9987/oni-mask-warrior.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/9987/oni-mask-warrior.720x1280.mp4",
@@ -152920,7 +152952,7 @@
{
"id": "motionbgs-p-doraemon",
"title": "Doraemon Sky Adventure",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/8125/doraemon.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/8125/doraemon.720x1280.mp4",
@@ -155335,7 +155367,7 @@
{
"id": "motionbgs-p-corgi-sleeping",
"title": "Corgi Sleeping",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/5685/corgi-sleeping.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/5685/corgi-sleeping.720x1280.mp4",
@@ -155815,7 +155847,7 @@
{
"id": "motionbgs-p-twixxel",
"title": "Twixxel",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/9909/twixxel.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/9909/twixxel.720x1280.mp4",
@@ -161095,7 +161127,7 @@
{
"id": "motionbgs-p-midnight-passenger",
"title": "Midnight Passenger",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/10103/midnight-passenger.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/10103/midnight-passenger.720x1280.mp4",
@@ -161755,7 +161787,7 @@
{
"id": "motionbgs-p-monolith-fantasy",
"title": "Monolith Fantasy",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/82/monolith-fantasy.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/82/monolith-fantasy.720x1280.mp4",
@@ -162760,7 +162792,7 @@
{
"id": "motionbgs-p-mortals-journey-to-immortality",
"title": "Mortal's Journey to Immortality",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/8584/mortals-journey-to-immortality.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/8584/mortals-journey-to-immortality.720x1280.mp4",
@@ -162970,7 +163002,7 @@
{
"id": "motionbgs-p-halloween-lofi-cat",
"title": "Halloween Lofi Cat",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/6688/halloween-lofi-cat.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/6688/halloween-lofi-cat.720x1280.mp4",
@@ -165145,7 +165177,7 @@
{
"id": "motionbgs-p-good-day-chronicle",
"title": "Good Day Chronicle",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/7842/good-day-chronicle.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/7842/good-day-chronicle.720x1280.mp4",
@@ -165190,7 +165222,7 @@
{
"id": "motionbgs-p-pigeon-relaxing",
"title": "Pigeon Relaxing",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/1966/pigeon-relaxing.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/1966/pigeon-relaxing.720x1280.mp4",
@@ -165775,7 +165807,7 @@
{
"id": "motionbgs-p-han-li",
"title": "Han Li - Mortal Is Journey to Immortality",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/9547/han-li.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/9547/han-li.720x1280.mp4",
@@ -166570,7 +166602,7 @@
{
"id": "motionbgs-p-tram-in-japan-city",
"title": "Tram in Japan City",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/2608/tram-in-japan-city.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/2608/tram-in-japan-city.720x1280.mp4",
@@ -167050,7 +167082,7 @@
{
"id": "motionbgs-p-shadow-cut-reverie",
"title": "Shadow Cut Reverie",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/9483/shadow-cut-reverie.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/9483/shadow-cut-reverie.720x1280.mp4",
@@ -167305,7 +167337,7 @@
{
"id": "motionbgs-p-corgi-dog-samurai",
"title": "Corgi Dog Samurai",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/4241/corgi-dog-samurai.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/4241/corgi-dog-samurai.720x1280.mp4",
@@ -167845,7 +167877,7 @@
{
"id": "motionbgs-p-devilgirl-phonk",
"title": "Devilgirl (Phonk)",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/6793/devilgirl-phonk.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/6793/devilgirl-phonk.720x1280.mp4",
@@ -169540,7 +169572,7 @@
{
"id": "motionbgs-p-urban-girl",
"title": "Urban Girl",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/112/urban-girl.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/112/urban-girl.720x1280.mp4",
@@ -170320,7 +170352,7 @@
{
"id": "motionbgs-p-sunny-snooze-with-a-corgi",
"title": "Sunny Snooze With a Corgi",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/4242/sunny-snooze-with-a-corgi.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/4242/sunny-snooze-with-a-corgi.720x1280.mp4",
@@ -170455,7 +170487,7 @@
{
"id": "motionbgs-p-echoes-of-the-ancient-sky",
"title": "Echoes of the Ancient Sky",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/8479/echoes-of-the-ancient-sky.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/8479/echoes-of-the-ancient-sky.720x1280.mp4",
@@ -170575,7 +170607,7 @@
{
"id": "motionbgs-p-qin-shi-huang-record-of-ragnarok",
"title": "Qin Shi Huang - Record of Ragnarok",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/9110/qin-shi-huang-record-of-ragnarok.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/9110/qin-shi-huang-record-of-ragnarok.720x1280.mp4",
@@ -170665,7 +170697,7 @@
{
"id": "motionbgs-p-cat-under-rain",
"title": "Cat Under Rain",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/5682/cat-under-rain.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/5682/cat-under-rain.720x1280.mp4",
@@ -171520,7 +171552,7 @@
{
"id": "motionbgs-p-oni-blade-elegance",
"title": "Oni Blade Elegance",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/9504/oni-blade-elegance.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/9504/oni-blade-elegance.720x1280.mp4",
@@ -172225,7 +172257,7 @@
{
"id": "motionbgs-p-cat-in-tokyo-city",
"title": "Cat in Tokyo City",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/2942/cat-in-tokyo-city.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/2942/cat-in-tokyo-city.720x1280.mp4",
@@ -172300,7 +172332,7 @@
{
"id": "motionbgs-p-claymore-clare",
"title": "Claymore Clare",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/5581/claymore-clare.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/5581/claymore-clare.720x1280.mp4",
@@ -172765,7 +172797,7 @@
{
"id": "motionbgs-p-curious-cats",
"title": "Curious Cats",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/7662/curious-cats.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/7662/curious-cats.720x1280.mp4",
@@ -175330,7 +175362,7 @@
{
"id": "motionbgs-p-cute-city",
"title": "Cute City",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/4626/cute-city.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/4626/cute-city.720x1280.mp4",
@@ -176455,7 +176487,7 @@
{
"id": "motionbgs-p-japan-nature",
"title": "Japan Nature",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/4302/japan-nature.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/4302/japan-nature.720x1280.mp4",
@@ -178105,7 +178137,7 @@
{
"id": "motionbgs-p-shinra-fire-force",
"title": "Shinra (Fire Force)",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/4542/shinra-fire-force.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/4542/shinra-fire-force.720x1280.mp4",
@@ -178270,7 +178302,7 @@
{
"id": "motionbgs-p-desolate-yume-wallhack",
"title": "Desolate Yume - Wallhack",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/9022/desolate-yume-wallhack.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/9022/desolate-yume-wallhack.720x1280.mp4",
@@ -178975,7 +179007,7 @@
{
"id": "motionbgs-p-aesthetic-tokyo-with-cat-on-the-roof",
"title": "Aesthetic Tokyo With Cat on the Roof",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/1427/aesthetic-tokyo-with-cat-on-the-roof.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/1427/aesthetic-tokyo-with-cat-on-the-roof.720x1280.mp4",
@@ -179485,7 +179517,7 @@
{
"id": "motionbgs-p-blonde-knight",
"title": "Celestial Blade Maiden",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/8351/blonde-knight.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/8351/blonde-knight.720x1280.mp4",
@@ -183070,7 +183102,7 @@
{
"id": "motionbgs-p-girl-katana",
"title": "Grace and Steel",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/6661/girl-katana.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/6661/girl-katana.720x1280.mp4",
@@ -185605,7 +185637,7 @@
{
"id": "motionbgs-p-moonlit-solitude",
"title": "Moonlit Solitude",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/7874/moonlit-solitude.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/7874/moonlit-solitude.720x1280.mp4",
@@ -185965,7 +185997,7 @@
{
"id": "motionbgs-p-emerald-inferno-samurai-and-dragon",
"title": "Emerald Inferno: Samurai and Dragon",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/4715/emerald-inferno-samurai-and-dragon.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/4715/emerald-inferno-samurai-and-dragon.720x1280.mp4",
@@ -186775,7 +186807,7 @@
{
"id": "motionbgs-p-witch-admires-the-butterfly",
"title": "Witch Admires the Butterfly",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/23/witch-admires-the-butterfly.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/23/witch-admires-the-butterfly.720x1280.mp4",
@@ -187540,7 +187572,7 @@
{
"id": "motionbgs-p-moonlit-blade-of-fate",
"title": "Moonlit Blade of Fate",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/8905/moonlit-blade-of-fate.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/8905/moonlit-blade-of-fate.720x1280.mp4",
@@ -187705,7 +187737,7 @@
{
"id": "motionbgs-p-an-unequal-fight-guweiz-art",
"title": "An Unequal Fight (Guweiz Art)",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/7029/an-unequal-fight-guweiz-art.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/7029/an-unequal-fight-guweiz-art.720x1280.mp4",
@@ -187810,7 +187842,7 @@
{
"id": "motionbgs-p-ninja-woman-with-sword",
"title": "Ninja Woman With Sword",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/5668/ninja-woman-with-sword.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/5668/ninja-woman-with-sword.720x1280.mp4",
@@ -188020,7 +188052,7 @@
{
"id": "motionbgs-p-nanakusa-nazuna",
"title": "Nazuna Laughing in the Dark",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/8796/nanakusa-nazuna.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/8796/nanakusa-nazuna.720x1280.mp4",
@@ -188200,7 +188232,7 @@
{
"id": "motionbgs-p-ghosts-of-utopia",
"title": "Ghosts of Utopia",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/9030/ghosts-of-utopia.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/9030/ghosts-of-utopia.720x1280.mp4",
@@ -188920,7 +188952,7 @@
{
"id": "motionbgs-p-lofi-girl",
"title": "Lofi Girl",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/71/lofi-girl.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/71/lofi-girl.720x1280.mp4",
@@ -188980,7 +189012,7 @@
{
"id": "motionbgs-p-samurai-girl3",
"title": "Samurai Girl With Dagger Eyes",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/17/samurai-girl3.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/17/samurai-girl3.720x1280.mp4",
@@ -189790,7 +189822,7 @@
{
"id": "motionbgs-p-shirou-ogami-bna",
"title": "Shirou Ogami (Brand New Animal)",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/9626/shirou-ogami-bna.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/9626/shirou-ogami-bna.720x1280.mp4",
@@ -190000,7 +190032,7 @@
{
"id": "motionbgs-p-morning-coffee",
"title": "Morning Coffee",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/7032/morning-coffee.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/7032/morning-coffee.720x1280.mp4",
@@ -190375,7 +190407,7 @@
{
"id": "motionbgs-p-floating-islands",
"title": "Floating Islands",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/9096/floating-islands.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/9096/floating-islands.720x1280.mp4",
@@ -190630,7 +190662,7 @@
{
"id": "motionbgs-p-moe-shop-moe-moe",
"title": "Moe Shop - Moe Moe",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/8653/moe-shop-moe-moe.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/8653/moe-shop-moe-moe.720x1280.mp4",
@@ -190885,7 +190917,7 @@
{
"id": "motionbgs-p-dragonbound-silence",
"title": "Dragonbound Silence",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/7884/dragonbound-silence.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/7884/dragonbound-silence.720x1280.mp4",
@@ -191665,7 +191697,7 @@
{
"id": "motionbgs-p-girl-with-tiny-robot",
"title": "Girl With Tiny Robot",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/4629/girl-with-tiny-robot.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/4629/girl-with-tiny-robot.720x1280.mp4",
@@ -192760,7 +192792,7 @@
{
"id": "motionbgs-p-emiya-fatestay-night",
"title": "Emiya (Fate/Stay Night)",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/1418/emiya-fatestay-night.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/1418/emiya-fatestay-night.720x1280.mp4",
@@ -192820,7 +192852,7 @@
{
"id": "motionbgs-p-crimson-spirit-of-the-shrine",
"title": "Crimson Spirit of the Shrine",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/9203/crimson-spirit-of-the-shrine.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/9203/crimson-spirit-of-the-shrine.720x1280.mp4",
@@ -193570,7 +193602,7 @@
{
"id": "motionbgs-p-escanor-sunshine-nanatsu-no-taizai",
"title": "Escanor Sunshine (Nanatsu No Taizai)",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/8226/escanor-sunshine-nanatsu-no-taizai.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/8226/escanor-sunshine-nanatsu-no-taizai.720x1280.mp4",
@@ -195400,7 +195432,7 @@
{
"id": "motionbgs-p-through-the-heaven",
"title": "Through the Heaven",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/7777/through-the-heaven.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/7777/through-the-heaven.720x1280.mp4",
@@ -196345,7 +196377,7 @@
{
"id": "motionbgs-p-reverend-insanity",
"title": "Reverend Insanity",
- "category": "ai-art",
+ "category": "anime",
"type": "video",
"previewUrl": "https://motionbgs.com/i/c/304x540/media/8217/reverend-insanity.720x1280.jpg",
"sourceUrl": "https://motionbgs.com/media/8217/reverend-insanity.720x1280.mp4",
diff --git a/resources/thumbnails/link-click-lu-guang-cheng-xiaoshi.jpg b/resources/thumbnails/link-click-lu-guang-cheng-xiaoshi.jpg
new file mode 100644
index 0000000..547f95e
Binary files /dev/null and b/resources/thumbnails/link-click-lu-guang-cheng-xiaoshi.jpg differ
diff --git a/resources/thumbnails/shield-hero-raphtalia-comet.jpg b/resources/thumbnails/shield-hero-raphtalia-comet.jpg
new file mode 100644
index 0000000..8e8aa73
Binary files /dev/null and b/resources/thumbnails/shield-hero-raphtalia-comet.jpg differ
diff --git a/resources/wallpapers/link-click-lu-guang-cheng-xiaoshi.mp4 b/resources/wallpapers/link-click-lu-guang-cheng-xiaoshi.mp4
new file mode 100644
index 0000000..e10b56f
Binary files /dev/null and b/resources/wallpapers/link-click-lu-guang-cheng-xiaoshi.mp4 differ
diff --git a/resources/wallpapers/shield-hero-raphtalia-comet.mp4 b/resources/wallpapers/shield-hero-raphtalia-comet.mp4
new file mode 100644
index 0000000..42a7af0
Binary files /dev/null and b/resources/wallpapers/shield-hero-raphtalia-comet.mp4 differ
diff --git a/scripts/smoke-test.mjs b/scripts/smoke-test.mjs
index 9f8eef3..471c2a4 100644
--- a/scripts/smoke-test.mjs
+++ b/scripts/smoke-test.mjs
@@ -93,6 +93,45 @@ try {
check('catalog loads', count > 1000, `${count} wallpapers`)
const tiles = await g.eval(`new Promise(r => setTimeout(() => r(document.querySelectorAll('[role=button][aria-label]').length), 2500))`)
check('gallery renders wallpaper tiles', tiles > 0, `${tiles} tiles`)
+ const frame = await g.eval(`(async () => {
+ const id = 'wallpaperx-v8'
+ await galleryApi.saveFirstFrame(id)
+ const [stills, videos] = await Promise.all([
+ galleryApi.getWallpapers('static', 'Rainy Anime City'),
+ galleryApi.getWallpapers('videos', 'Rainy Anime City')
+ ])
+ const still = stills.find(item => item.id === 'static-frame-' + id)
+ const video = videos.find(item => item.id === id)
+ if (!still || !video) return null
+ async function size(src) {
+ const img = new Image()
+ img.src = src
+ await img.decode()
+ return [img.naturalWidth, img.naturalHeight]
+ }
+ return {
+ still: await size(still.sourceUrl),
+ thumbnail: await size(video.previewUrl),
+ shared: still.previewUrl === video.previewUrl
+ }
+ })()`)
+ check('first frame saved with a shared lightweight thumbnail',
+ frame?.shared && Math.min(...frame.still) >= 1440 && Math.max(...frame.thumbnail) <= 640,
+ JSON.stringify(frame) ?? '')
+ const removal = await g.eval(`(async () => {
+ const videoId = 'wallpaperx-v8'
+ const stillId = 'static-frame-' + videoId
+ const getStill = async () => (await galleryApi.getWallpapers('static', 'Rainy Anime City'))
+ .find(item => item.id === stillId)
+ const removed = await galleryApi.deleteWallpaper(stillId)
+ const missing = !(await getStill())
+ const video = (await galleryApi.getWallpapers('videos', 'Rainy Anime City'))
+ .find(item => item.id === videoId)
+ await galleryApi.saveFirstFrame(videoId)
+ return { removed: removed && missing, video: Boolean(video), restored: Boolean(await getStill()) }
+ })()`)
+ check('generated still can be deleted and explicitly restored',
+ removal?.removed && removal.video && removal.restored, JSON.stringify(removal) ?? '')
const displays = (await g.eval(`galleryApi.getDisplays()`)) || []
check('displays detected', displays.length > 0, displays.map((d) => `${d.label} ${d.bounds.width}x${d.bounds.height}`).join(', '))
await g.shot(path.join(outDir, 'gallery.png'))
diff --git a/src/main/contentSources/index.ts b/src/main/contentSources/index.ts
index 8b330d6..4f39ca5 100644
--- a/src/main/contentSources/index.ts
+++ b/src/main/contentSources/index.ts
@@ -1,7 +1,7 @@
import { app } from 'electron'
import path from 'node:path'
import fs from 'node:fs'
-import { DEFAULT_WALLPAPER_ID, WallpaperItem } from '../../shared/types'
+import { DEFAULT_WALLPAPER_ID, isHighResolution, WallpaperItem } from '../../shared/types'
export type { WallpaperItem }
/**
@@ -22,7 +22,7 @@ function fallbackCatalog(): WallpaperItem[] {
attribution: 'Vantage Team',
previewUrl: '',
sourceUrl: 'extracted/v8.mp4',
- resolution: { width: 1920, height: 1080 },
+ resolution: { width: 2560, height: 1440 },
duration: 0
}
]
@@ -44,9 +44,7 @@ function isWallpaperItem(value: unknown): value is WallpaperItem {
}
/**
- * Load the wallpaper catalog from the resources/catalog.json data file instead
- * of inlining 21K lines of data in a TypeScript source file. The first entry's
- * id is normalised to DEFAULT_WALLPAPER_ID so the constant stays canonical.
+ * Load the wallpaper catalog and verify that the bundled default is usable.
*/
function loadCatalog(): WallpaperItem[] {
const catalogPath = app.isPackaged
@@ -65,22 +63,19 @@ function loadCatalog(): WallpaperItem[] {
console.warn(`[ContentSources] Ignored ${parsed.length - items.length} malformed catalog item(s).`)
}
- // Ensure the default wallpaper ID stays in sync with the shared constant.
- // A catalog without a valid default would leave assignments dangling, so use
- // the minimal known-good catalog instead.
- const normalized = items.map((item) =>
- item.id === 'wallpaperx-v8' ? { ...item, id: DEFAULT_WALLPAPER_ID } : item
- )
- if (!normalized.some((item) => item.id === DEFAULT_WALLPAPER_ID)) {
+ if (!items.some((item) => item.id === DEFAULT_WALLPAPER_ID && isHighResolution(item.resolution))) {
console.error('[ContentSources] catalog.json has no valid default wallpaper.')
return fallbackCatalog()
}
- return normalized
+ return items
} catch (err) {
console.error('[ContentSources] Failed to load catalog.json:', err)
return fallbackCatalog()
}
}
-export const INITIAL_WALLPAPERS: WallpaperItem[] = loadCatalog()
\ No newline at end of file
+export const CATALOG_WALLPAPERS = loadCatalog()
+export const INITIAL_WALLPAPERS = CATALOG_WALLPAPERS.filter(
+ (item) => item.type === 'generative' || isHighResolution(item.resolution)
+)
diff --git a/src/main/db.ts b/src/main/db.ts
index 776a8a0..8c1a4ed 100644
--- a/src/main/db.ts
+++ b/src/main/db.ts
@@ -5,7 +5,7 @@ import fs from 'node:fs'
import crypto from 'node:crypto'
import { fileURLToPath } from 'node:url'
import { INITIAL_WALLPAPERS } from './contentSources'
-import { WallpaperItem, DEFAULT_WALLPAPER_ID } from '../shared/types'
+import { WallpaperItem, DEFAULT_WALLPAPER_ID, MIN_WALLPAPER_SHORT_EDGE } from '../shared/types'
import { toMediaUrl, fromMediaUrl } from './mediaUrl'
/** Shape of a row returned by SELECT * FROM wallpapers */
@@ -21,6 +21,7 @@ interface WallpaperRow {
resolution_h: number
duration: number | null
previewUrl: string
+ first_frame_preview?: string | null
sourceUrl: string
generatorId: string | null
colorPalette: string | null
@@ -89,6 +90,19 @@ export function initDatabase(): Database.Database {
key TEXT PRIMARY KEY,
value TEXT
);
+
+ CREATE TABLE IF NOT EXISTS wallpaper_first_frames (
+ video_id TEXT PRIMARY KEY REFERENCES wallpapers(id) ON DELETE CASCADE,
+ still_id TEXT NOT NULL UNIQUE REFERENCES wallpapers(id) ON DELETE CASCADE,
+ video_source_url TEXT NOT NULL,
+ fingerprint TEXT NOT NULL
+ );
+
+ CREATE TABLE IF NOT EXISTS suppressed_first_frames (
+ video_id TEXT PRIMARY KEY
+ );
+
+ CREATE INDEX IF NOT EXISTS wallpapers_video_source_url ON wallpapers(sourceUrl) WHERE type = 'video';
`)
// Upsert catalog wallpapers to ensure updated working URLs & preview paths are synced
@@ -158,10 +172,26 @@ export function initDatabase(): Database.Database {
})
idx++
}
+
+ // Catalog cleanup above handles bundled entries. Existing imports and stills
+ // also need to meet the minimum, while their source files stay on disk.
+ const belowMinimum = `
+ type != 'generative'
+ AND (COALESCE(resolution_w, 0) < @minimum OR COALESCE(resolution_h, 0) < @minimum)
+ `
+ const minimum = MIN_WALLPAPER_SHORT_EDGE
+ db!.prepare(`
+ UPDATE display_assignments
+ SET wallpaper_id = @defaultId
+ WHERE wallpaper_id IN (SELECT id FROM wallpapers WHERE ${belowMinimum})
+ `).run({ minimum, defaultId: DEFAULT_WALLPAPER_ID })
+ db!.prepare(`DELETE FROM wallpapers WHERE ${belowMinimum}`).run({ minimum })
})
- // The catalog has ~14k entries: only rewrite it when it actually changed (new app version).
- const catalogFingerprint = crypto.createHash('sha1').update(JSON.stringify(INITIAL_WALLPAPERS)).digest('hex')
+ // Only rewrite the catalog when the contents or the resolution policy changes.
+ const catalogFingerprint = crypto.createHash('sha1')
+ .update(JSON.stringify([MIN_WALLPAPER_SHORT_EDGE, INITIAL_WALLPAPERS]))
+ .digest('hex')
const storedFingerprint = (db.prepare("SELECT value FROM meta WHERE key = 'catalog_fingerprint'").get() as { value: string } | undefined)?.value
if (storedFingerprint !== catalogFingerprint) {
syncCatalog(INITIAL_WALLPAPERS)
@@ -269,7 +299,22 @@ export function getWallpaperFileReferences(): string[] {
return Array.from(names)
}
-/** Item counts per sidebar category (plus the virtual "all", "favorites" and "static" buckets). */
+const VERTICAL_VIDEO_FILTER = `source != 'static' AND type = 'video'
+ AND resolution_w >= ${MIN_WALLPAPER_SHORT_EDGE} AND resolution_h > resolution_w`
+
+// The mapping is keyed by video ID. Its source URL guards against showing a
+// saved frame when a catalog refresh replaces the video under the same ID.
+const SELECT_WALLPAPERS_WITH_PREVIEWS = `
+ SELECT wallpapers.*, (
+ SELECT still.previewUrl
+ FROM wallpaper_first_frames AS frame
+ JOIN wallpapers AS still ON still.id = frame.still_id
+ WHERE frame.video_id = wallpapers.id AND frame.video_source_url = wallpapers.sourceUrl
+ ) AS first_frame_preview
+ FROM wallpapers
+`
+
+/** Item counts per sidebar category, including virtual collections. */
export function getCategoryCounts(): Record {
const database = initDatabase()
const counts: Record = {}
@@ -284,26 +329,25 @@ export function getCategoryCounts(): Record {
counts.all = all
counts.favorites = (database.prepare("SELECT COUNT(*) AS n FROM wallpapers WHERE is_favorite = 1 AND source != 'static'").get() as { n: number }).n
counts.static = (database.prepare("SELECT COUNT(*) AS n FROM wallpapers WHERE source = 'static'").get() as { n: number }).n
- counts.portrait = (database.prepare("SELECT COUNT(*) AS n FROM wallpapers WHERE source != 'static' AND resolution_h > resolution_w").get() as { n: number }).n
+ counts.portrait = (database.prepare(`SELECT COUNT(*) AS n FROM wallpapers WHERE ${VERTICAL_VIDEO_FILTER}`).get() as { n: number }).n
return counts
}
export function getAllWallpapers(category?: string, query?: string): WallpaperItem[] {
const database = initDatabase()
- let sql = 'SELECT * FROM wallpapers'
+ let sql = SELECT_WALLPAPERS_WITH_PREVIEWS
const params: (string | number)[] = []
const conditions: string[] = []
if (category === 'static') {
conditions.push("source = 'static'")
+ } else if (category === 'portrait') {
+ conditions.push(VERTICAL_VIDEO_FILTER)
} else {
// Static wallpapers are only exposed via the dedicated Static Wallpapers tab
conditions.push("source != 'static'")
- if (category === 'portrait') {
- // Virtual "Vertical" collection: anything taller than it is wide, for rotated monitors.
- conditions.push('resolution_h > resolution_w')
- } else if (category && category !== 'all' && category !== 'favorites' && category !== 'videos') {
+ if (category && category !== 'all' && category !== 'favorites' && category !== 'videos') {
conditions.push('category = ?')
params.push(category)
} else if (category === 'favorites') {
@@ -328,7 +372,11 @@ export function getAllWallpapers(category?: string, query?: string): WallpaperIt
const rows = database.prepare(sql).all(...params) as WallpaperRow[]
- return rows.map((r) => ({
+ return rows.map(wallpaperItemFromRow)
+}
+
+function wallpaperItemFromRow(r: WallpaperRow): WallpaperItem {
+ return {
id: r.id,
title: r.title,
category: r.category,
@@ -338,35 +386,89 @@ export function getAllWallpapers(category?: string, query?: string): WallpaperIt
attribution: r.attribution ?? undefined,
resolution: { width: r.resolution_w, height: r.resolution_h },
duration: r.duration ?? undefined,
- previewUrl: resolveMediaUrl(r.previewUrl),
+ previewUrl: resolveMediaUrl(r.first_frame_preview || r.previewUrl),
sourceUrl: resolveMediaUrl(r.sourceUrl),
generatorId: r.generatorId ?? undefined,
colorPalette: parseColorPalette(r.colorPalette),
is_favorite: Boolean(r.is_favorite)
- }))
+ }
}
export function getWallpaperById(id: string): WallpaperItem | null {
const database = initDatabase()
- const row = database.prepare('SELECT * FROM wallpapers WHERE id = ?').get(id) as WallpaperRow | undefined
- if (!row) return null
+ const row = database.prepare(`${SELECT_WALLPAPERS_WITH_PREVIEWS} WHERE id = ?`).get(id) as WallpaperRow | undefined
+ return row ? wallpaperItemFromRow(row) : null
+}
- return {
- id: row.id,
- title: row.title,
- category: row.category,
- type: row.type,
- source: row.source,
- license: row.license,
- attribution: row.attribution ?? undefined,
- resolution: { width: row.resolution_w, height: row.resolution_h },
- duration: row.duration ?? undefined,
- previewUrl: resolveMediaUrl(row.previewUrl),
- sourceUrl: resolveMediaUrl(row.sourceUrl),
- generatorId: row.generatorId ?? undefined,
- colorPalette: parseColorPalette(row.colorPalette),
- is_favorite: Boolean(row.is_favorite)
- }
+export function getVideosBySourceUrl(remoteUrl: string): WallpaperItem[] {
+ const rows = initDatabase()
+ .prepare("SELECT * FROM wallpapers WHERE type = 'video' AND sourceUrl = ?")
+ .all(remoteUrl) as WallpaperRow[]
+ return rows.map(wallpaperItemFromRow)
+}
+
+export function getSavedFirstFrame(videoId: string): { fingerprint: string; still: WallpaperItem } | null {
+ const row = initDatabase().prepare(`
+ SELECT still.*, frame.fingerprint
+ FROM wallpaper_first_frames AS frame
+ JOIN wallpapers AS still ON still.id = frame.still_id
+ JOIN wallpapers AS video ON video.id = frame.video_id AND video.sourceUrl = frame.video_source_url
+ WHERE frame.video_id = ?
+ `).get(videoId) as (WallpaperRow & { fingerprint: string }) | undefined
+ return row ? { fingerprint: row.fingerprint, still: wallpaperItemFromRow(row) } : null
+}
+
+export function isFirstFrameSuppressed(videoId: string): boolean {
+ return Boolean(initDatabase()
+ .prepare('SELECT 1 FROM suppressed_first_frames WHERE video_id = ?')
+ .get(videoId))
+}
+
+export function saveFirstFrameToDb(
+ video: WallpaperItem,
+ still: WallpaperItem,
+ fingerprint: string,
+ restoreSuppressed = false
+): boolean {
+ const database = initDatabase()
+ return database.transaction(() => {
+ if (!restoreSuppressed && isFirstFrameSuppressed(video.id)) return false
+ const row = database
+ .prepare("SELECT sourceUrl FROM wallpapers WHERE id = ? AND type = 'video'")
+ .get(video.id) as { sourceUrl: string } | undefined
+ if (!row || resolveMediaUrl(row.sourceUrl) !== video.sourceUrl) return false
+
+ addWallpaperToDb(still)
+ database.prepare(`
+ INSERT INTO wallpaper_first_frames (video_id, still_id, video_source_url, fingerprint)
+ VALUES (?, ?, ?, ?)
+ ON CONFLICT(video_id) DO UPDATE SET
+ still_id = excluded.still_id,
+ video_source_url = excluded.video_source_url,
+ fingerprint = excluded.fingerprint
+ `).run(video.id, still.id, row.sourceUrl, fingerprint)
+ if (restoreSuppressed) database.prepare('DELETE FROM suppressed_first_frames WHERE video_id = ?').run(video.id)
+ return true
+ })()
+}
+
+export function deleteFirstFrameStillFromDb(stillId: string): WallpaperItem | null {
+ const prefix = 'static-frame-'
+ if (!stillId.startsWith(prefix) || stillId.length === prefix.length) return null
+
+ const database = initDatabase()
+ return database.transaction(() => {
+ const still = database.prepare("SELECT * FROM wallpapers WHERE id = ? AND source = 'static' AND type = 'image'")
+ .get(stillId) as WallpaperRow | undefined
+ if (!still) return null
+
+ // Keep the user's deletion preference even if catalog cleanup removed
+ // the parent video and its frame mapping.
+ database.prepare('INSERT OR IGNORE INTO suppressed_first_frames (video_id) VALUES (?)').run(stillId.slice(prefix.length))
+ database.prepare('UPDATE display_assignments SET wallpaper_id = ? WHERE wallpaper_id = ?').run(DEFAULT_WALLPAPER_ID, stillId)
+ database.prepare('DELETE FROM wallpapers WHERE id = ?').run(stillId)
+ return wallpaperItemFromRow(still)
+ })()
}
@@ -534,6 +636,8 @@ export function pruneUserFolderEntries(keptIds: string[]): void {
/** Remove static-catalog entries whose source file no longer exists */
export function pruneStaticWallpapers(keptIds: string[]): void {
const database = initDatabase()
+ // Saved video frames belong to the app's gallery, independently of watched folders.
+ const fromWatchedFolder = "source = 'static' AND id LIKE 'static-%' AND id NOT LIKE 'static-frame-%'"
try {
const prune = database.transaction(() => {
if (keptIds.length > 0) {
@@ -544,19 +648,19 @@ export function pruneStaticWallpapers(keptIds: string[]): void {
database.prepare(
`UPDATE display_assignments SET wallpaper_id = ? WHERE wallpaper_id IN (
- SELECT id FROM wallpapers WHERE source = 'static' AND id LIKE 'static-%' AND id NOT IN (SELECT id FROM _kept_static_ids)
+ SELECT id FROM wallpapers WHERE ${fromWatchedFolder} AND id NOT IN (SELECT id FROM _kept_static_ids)
)`
).run(DEFAULT_WALLPAPER_ID)
database.prepare(
- `DELETE FROM wallpapers WHERE source = 'static' AND id LIKE 'static-%' AND id NOT IN (SELECT id FROM _kept_static_ids)`
+ `DELETE FROM wallpapers WHERE ${fromWatchedFolder} AND id NOT IN (SELECT id FROM _kept_static_ids)`
).run()
} else {
database.prepare(
`UPDATE display_assignments SET wallpaper_id = ? WHERE wallpaper_id IN (
- SELECT id FROM wallpapers WHERE source = 'static' AND id LIKE 'static-%'
+ SELECT id FROM wallpapers WHERE ${fromWatchedFolder}
)`
).run(DEFAULT_WALLPAPER_ID)
- database.prepare(`DELETE FROM wallpapers WHERE source = 'static' AND id LIKE 'static-%'`).run()
+ database.prepare(`DELETE FROM wallpapers WHERE ${fromWatchedFolder}`).run()
}
})
prune()
diff --git a/src/main/firstFrameLibrary.ts b/src/main/firstFrameLibrary.ts
new file mode 100644
index 0000000..d0c8937
--- /dev/null
+++ b/src/main/firstFrameLibrary.ts
@@ -0,0 +1,146 @@
+import { app } from 'electron'
+import { createHash, randomUUID } from 'node:crypto'
+import fs from 'node:fs/promises'
+import path from 'node:path'
+import { isHighResolution, type WallpaperItem } from '../shared/types'
+import { getSavedFirstFrame, getWallpaperById, isFirstFrameSuppressed, saveFirstFrameToDb } from './db'
+import { fromMediaUrl, toMediaUrl } from './mediaUrl'
+import { cacheKeyForUrl, ensureCached, getCacheDir, isAllowedRemoteMediaUrl } from './videoCache'
+import { captureVideoFirstFrame } from './videoDimensions'
+
+const pending = new Map>()
+const captureGenerations = new Map()
+let captureQueue: Promise = Promise.resolve()
+let stopped = false
+
+export function getFirstFrameDirectory(): string {
+ return path.join(app.getPath('userData'), 'first-frames')
+}
+
+export function stopFirstFrameCapture(): void {
+ stopped = true
+}
+
+async function isSavedFile(url: string): Promise {
+ const file = fromMediaUrl(url)
+ const stat = file ? await fs.stat(file).catch(() => null) : null
+ return Boolean(stat?.isFile() && stat.size > 0)
+}
+
+export async function removeSavedFrameFiles(still: WallpaperItem): Promise {
+ const directory = getFirstFrameDirectory()
+ await Promise.all([still.sourceUrl, still.previewUrl].map(async (url) => {
+ const file = fromMediaUrl(url)
+ if (!file || path.dirname(file) !== directory || !/^[a-f0-9-]{36}(?:-thumb)?\.jpg$/i.test(path.basename(file))) return
+ await fs.unlink(file).catch((err: NodeJS.ErrnoException) => {
+ if (err.code !== 'ENOENT') console.warn('[FirstFrames] Could not remove generated image:', file, err)
+ })
+ }))
+}
+
+export function cancelFirstFrameCapture(videoId: string): void {
+ captureGenerations.set(videoId, (captureGenerations.get(videoId) ?? 0) + 1)
+}
+
+interface CaptureOptions {
+ cachedPath?: string
+ restoreSuppressed?: boolean
+}
+
+async function captureAndSave(videoId: string, { cachedPath, restoreSuppressed = false }: CaptureOptions, generation: number): Promise {
+ const cancelled = () => stopped || (captureGenerations.get(videoId) ?? 0) !== generation
+ if (cancelled() || (!restoreSuppressed && isFirstFrameSuppressed(videoId))) return false
+ const video = getWallpaperById(videoId)
+ if (video?.type !== 'video' || !isHighResolution(video.resolution)) {
+ throw new Error('Choose a 2K or higher video wallpaper to save its first frame.')
+ }
+
+ const localPath = fromMediaUrl(video.sourceUrl)
+ const stat = localPath ? await fs.stat(localPath).catch(() => null) : null
+ const fingerprint = createHash('sha256')
+ .update(JSON.stringify([video.sourceUrl, stat?.size, stat?.mtimeMs, stat?.ctimeMs]))
+ .digest('hex')
+ if (cancelled()) return false
+ const saved = getSavedFirstFrame(videoId)
+ if (saved?.fingerprint === fingerprint) {
+ const files = await Promise.all([isSavedFile(saved.still.sourceUrl), isSavedFile(saved.still.previewUrl)])
+ if (files.every(Boolean)) return false
+ }
+
+ if (localPath && !stat?.isFile()) throw new Error('The source video could not be found.')
+ if (!localPath && !isAllowedRemoteMediaUrl(video.sourceUrl)) {
+ throw new Error('This video source is unavailable for frame capture.')
+ }
+
+ const file = localPath ?? cachedPath ?? await ensureCached(video.sourceUrl)
+ if (cancelled()) return false
+ // One retry: the first decode can miss its window on slow or busy machines.
+ const frame = (await captureVideoFirstFrame(file)) ?? (cancelled() ? null : await captureVideoFirstFrame(file))
+ if (cancelled()) return false
+ if (!frame) throw new Error('Could not capture a first frame at 2K or higher.')
+
+ // Publish the pair in one database transaction after both immutable JPEGs are on disk.
+ const directory = getFirstFrameDirectory()
+ const stem = randomUUID()
+ const full = path.join(directory, `${stem}.jpg`)
+ const thumb = path.join(directory, `${stem}-thumb.jpg`)
+ let committed = false
+ try {
+ await fs.mkdir(directory, { recursive: true })
+ await fs.writeFile(full, frame.full, { flag: 'wx' })
+ await fs.writeFile(thumb, frame.thumbnail, { flag: 'wx' })
+ if (cancelled()) return false
+ committed = saveFirstFrameToDb(video, {
+ id: `static-frame-${video.id}`,
+ title: video.title,
+ category: 'static',
+ type: 'image',
+ source: 'static',
+ resolution: frame.resolution,
+ previewUrl: toMediaUrl(thumb),
+ sourceUrl: toMediaUrl(full),
+ license: video.license,
+ attribution: video.attribution
+ }, fingerprint, restoreSuppressed)
+ } finally {
+ if (!committed) await Promise.allSettled([fs.unlink(full), fs.unlink(thumb)])
+ }
+ if (!committed) return false
+
+ if (saved) await removeSavedFrameFiles(saved.still)
+ return true
+}
+
+export function saveVideoFirstFrame(videoId: string, options: CaptureOptions = {}): Promise {
+ if (stopped) return Promise.resolve(false)
+ const generation = captureGenerations.get(videoId) ?? 0
+ const key = JSON.stringify([videoId, generation, Boolean(options.restoreSuppressed)])
+ const existing = pending.get(key)
+ if (existing) return existing
+
+ const job = captureQueue.then(() => captureAndSave(videoId, options, generation))
+ .finally(() => pending.delete(key))
+ pending.set(key, job)
+ captureQueue = job.catch(() => {})
+ return job
+}
+
+export async function backfillFirstFrames(videos: WallpaperItem[], onSaved: () => void): Promise {
+ const cacheDir = getCacheDir()
+ const cachedFiles = await fs.readdir(cacheDir).catch(() => [])
+ const cacheByKey = new Map()
+ for (const file of cachedFiles) {
+ const key = /^([a-f0-9]{40})\.(?:mp4|webm|mov|m4v|mkv)$/i.exec(file)?.[1]
+ if (key) cacheByKey.set(key, path.join(cacheDir, file))
+ }
+
+ // Only decode files already on this machine. Submit one job at a time so a
+ // request from the gallery can run ahead of the rest of the backfill.
+ for (const video of videos) {
+ if (stopped) return
+ const cachedPath = cacheByKey.get(cacheKeyForUrl(video.sourceUrl))
+ if (!cachedPath && !fromMediaUrl(video.sourceUrl)) continue
+ const saved = await saveVideoFirstFrame(video.id, { cachedPath }).catch(() => false)
+ if (saved) onSaved()
+ }
+}
diff --git a/src/main/index.ts b/src/main/index.ts
index 5f394ac..b8a1f0d 100644
--- a/src/main/index.ts
+++ b/src/main/index.ts
@@ -4,20 +4,22 @@ import fs from 'node:fs'
import crypto from 'node:crypto'
import { fileURLToPath } from 'node:url'
import { Readable } from 'node:stream'
-import { initDatabase, getAllWallpapers, getCategoryCounts, getWallpaperById, setDisplayAssignment, getDisplayAssignment, setPerformanceMode, toggleFavoriteInDb, deleteWallpaperFromDb, addWallpaperToDb, pruneUserFolderEntries, closeDatabase, getWallpaperFileReferences } from './db'
-import { getAttachFailures, syncWallpaperWindows, applyWallpaperToDisplay, setPerformanceModeForDisplay, setupDisplayListeners, getGlobalPlaybackState, setGalleryWindowGetter, broadcastCacheProgress, isWallpaperRenderer, getDisplayIdForWebContents } from './wallpaperWindow'
+import { initDatabase, getAllWallpapers, getCategoryCounts, getWallpaperById, getVideosBySourceUrl, setDisplayAssignment, getDisplayAssignment, setPerformanceMode, toggleFavoriteInDb, deleteWallpaperFromDb, deleteFirstFrameStillFromDb, addWallpaperToDb, pruneUserFolderEntries, closeDatabase, getWallpaperFileReferences } from './db'
+import { getAttachFailures, syncWallpaperWindows, applyWallpaperToDisplay, setPerformanceModeForDisplay, setupDisplayListeners, getGlobalPlaybackState, setGalleryWindowGetter, broadcastCacheProgress, isWallpaperRenderer, getDisplayIdForWebContents, notifyDisplayStateChanged } from './wallpaperWindow'
import { createTray, refreshTrayMenu } from './tray'
import { initPowerManager } from './powerManager'
import { ensureCached, getCacheStatus, clearCache, evictToLimit, setCacheLimitBytes, getCacheDir, isAllowedRemoteMediaUrl, onCacheProgress, getCacheLimitBytes, CACHE_FLOOR_BYTES, CACHE_CEILING_BYTES } from './videoCache'
import { syncStaticWallpapers, getStaticSourceDirs } from './staticLibrary'
import store from './store'
import { setDockVisible, isDockVisible, buildAppMenu, onDockVisibilityChange, revealWindow } from './dock'
-import { INITIAL_WALLPAPERS } from './contentSources'
-import { ALLOWED_SETTINGS_KEYS, DEFAULT_WALLPAPER_ID } from '../shared/types'
+import { CATALOG_WALLPAPERS } from './contentSources'
+import { ALLOWED_SETTINGS_KEYS, DEFAULT_WALLPAPER_ID, isHighResolution } from '../shared/types'
+import type { WallpaperItem } from '../shared/types'
import { toMediaUrl, fromMediaUrl } from './mediaUrl'
import { installVantageScreenSaver, setupVantageScreenSaver, syncSelectedScreenSaverVideo } from './screenSaver'
-import { generateVideoThumbnail, pruneOrphanThumbnails } from './thumbnailGenerator'
+import { pruneOrphanThumbnails } from './thumbnailGenerator'
+import { backfillFirstFrames, cancelFirstFrameCapture, getFirstFrameDirectory, removeSavedFrameFiles, saveVideoFirstFrame, stopFirstFrameCapture } from './firstFrameLibrary'
import { getMediaDimensions } from './mediaInfo'
import { freeUpMemory } from './memoryManager'
import { hardenWindowNavigation } from './windowSecurity'
@@ -61,6 +63,12 @@ function getVantageWallpapersFolder(): string {
// Stored watcher handles — closed before re-watching to prevent leaks
let folderWatcher: fs.FSWatcher | null = null
const staticWatchers: fs.FSWatcher[] = []
+const managedMediaDimensions = new Map()
function watchVantageWallpapersFolder(): void {
// Close previous watcher if called again (re-watch guard)
@@ -119,17 +127,14 @@ async function scanVantageWallpapersFolder(): Promise {
id: string
filePath: string
isVideo: boolean
+ stat: fs.Stats
}
const tasks: ScanTask[] = []
for (const file of files) {
if (file.startsWith('.')) continue
const ext = path.extname(file).toLowerCase()
- if (['.mp4', '.mov', '.webm', '.png', '.jpg', '.jpeg', '.webp'].includes(ext)) {
- // Skip scanning files that belong to the built-in catalog (e.g. V8.mp4, V233.mp4, V295.mp4)
- const isCatalogFile = INITIAL_WALLPAPERS.some(
- (item) => item.sourceUrl && item.sourceUrl.toLowerCase() === `extracted/${file.toLowerCase()}`
- )
- if (isCatalogFile) continue
+ if (VALID_IMPORT_EXTENSIONS.has(ext)) {
+ if (CATALOG_SOURCE_URLS.has(`extracted/${file.toLowerCase()}`)) continue
const filePath = path.join(targetDir, file)
let stat: fs.Stats
@@ -141,47 +146,54 @@ async function scanVantageWallpapersFolder(): Promise {
if (!stat.isFile()) continue
const isVideo = ['.mp4', '.mov', '.webm'].includes(ext)
const id = userFolderId(file, filePath)
- presentIds.push(id)
- tasks.push({ file, id, filePath, isVideo })
+ tasks.push({ file, id, filePath, isVideo, stat })
}
}
- // Thumbnail generation (qlmanage) and dimension probing (mdls) spawn helper
- // processes; cap concurrency so a large folder does not spawn 50 at once.
+ const scannedPaths = new Set(tasks.map(({ filePath }) => filePath))
+ for (const filePath of managedMediaDimensions.keys()) {
+ if (!scannedPaths.has(filePath)) managedMediaDimensions.delete(filePath)
+ }
+
+ // Bound dimension probing when the managed folder has many files.
const CONCURRENCY = 3
let cursor = 0
const workers = Array.from({ length: Math.min(CONCURRENCY, tasks.length) }, async () => {
while (cursor < tasks.length) {
- const { file, id, filePath, isVideo } = tasks[cursor++]
-
- let previewPath = filePath
- if (isVideo) {
- const thumbPath = await generateVideoThumbnail(filePath)
- if (thumbPath) {
- previewPath = thumbPath
- }
- }
+ const { file, id, filePath, isVideo, stat } = tasks[cursor++]
+ const { size, mtimeMs, ctimeMs } = stat
+ const cached = managedMediaDimensions.get(filePath)
+ const unchanged = cached && cached.size === size && cached.mtimeMs === mtimeMs && cached.ctimeMs === ctimeMs
+ const resolution = unchanged ? cached.resolution : await getMediaDimensions(filePath)
+ if (isQuitting) return
+ managedMediaDimensions.set(filePath, { size, mtimeMs, ctimeMs, resolution })
+ if (!isHighResolution(resolution)) continue
+ presentIds.push(id)
+ const existing = getWallpaperById(id)
+ if (unchanged && existing) continue
const newItem = {
id,
title: file.replace(/\.[^/.]+$/, ''),
category: isVideo ? ('imported' as const) : ('static' as const),
type: isVideo ? ('video' as const) : ('image' as const),
- previewUrl: toMediaUrl(previewPath),
+ previewUrl: isVideo ? '' : toMediaUrl(filePath),
sourceUrl: toMediaUrl(filePath),
- resolution: await getMediaDimensions(filePath),
+ resolution,
source: isVideo ? ('user' as const) : ('static' as const),
license: 'Local Folder Import',
attribution: 'Local File'
}
addWallpaperToDb(newItem)
- addedCount++
+ if (isVideo) queueFirstFrame(id)
+ if (!existing) addedCount++
}
})
await Promise.all(workers)
+ if (isQuitting) return addedCount
- // Purge DB entries for files that no longer exist in the folder
- pruneUserFolderEntries(presentIds)
+ // Prune missing and below-2K entries from the library.
+ refreshPrunedAssignments(() => pruneUserFolderEntries(presentIds))
// Garbage-collect generated thumbnails no longer referenced by any DB row
pruneOrphanThumbnails(getWallpaperFileReferences())
@@ -193,6 +205,7 @@ async function scanVantageWallpapersFolder(): Promise {
let scanTimer: ReturnType | null = null
let staticTimer: ReturnType | null = null
+let frameRefreshTimer: ReturnType | null = null
// Serialize folder scans so overlapping watcher/startup/manual scans can never
// interleave (two concurrent scans previously raced on the prune step and tore
@@ -218,7 +231,7 @@ function enqueueScan(): Promise {
function enqueueStaticSync(): Promise {
const run = staticSyncQueue.then(() => {
if (isQuitting) return 0
- return syncStaticWallpapers()
+ return syncStaticWallpapers(refreshPrunedAssignments)
}).catch((err) => {
console.error('[StaticLibrary] Sync failed:', err)
return 0
@@ -236,6 +249,38 @@ function notifyCatalogChanged(): void {
}
}
+function notifyFirstFrameSaved(): void {
+ if (isQuitting || frameRefreshTimer) return
+ frameRefreshTimer = setTimeout(() => {
+ frameRefreshTimer = null
+ notifyCatalogChanged()
+ }, 250)
+}
+
+function queueFirstFrame(videoId: string, cachedPath?: string): void {
+ void saveVideoFirstFrame(videoId, { cachedPath })
+ .then((saved) => { if (saved) notifyFirstFrameSaved() })
+ .catch(() => { /* the original thumbnail remains available */ })
+}
+
+function refreshPrunedAssignments(prune: () => void): void {
+ const displays = screen.getAllDisplays()
+ const previousIds = displays.map((display) => getDisplayAssignment(String(display.id)).wallpaperId)
+ prune()
+ let changed = false
+ for (const [index, display] of displays.entries()) {
+ const { wallpaperId } = getDisplayAssignment(String(display.id))
+ if (wallpaperId && wallpaperId !== previousIds[index]) {
+ applyWallpaperToDisplay(display.id, wallpaperId)
+ changed = true
+ }
+ }
+ if (changed) {
+ notifyDisplayStateChanged()
+ if (process.platform === 'darwin') syncSelectedScreenSaverVideo()
+ }
+}
+
function forwardRendererLogs(win: BrowserWindow): void {
win.webContents.on('console-message', (event) => {
const line = event.lineNumber ?? ''
@@ -247,6 +292,9 @@ function forwardRendererLogs(win: BrowserWindow): void {
const VALID_PERFORMANCE_MODES = new Set(['quality', 'balanced', 'battery-saver'])
const VALID_IMPORT_EXTENSIONS = new Set(['.mp4', '.mov', '.webm', '.png', '.jpg', '.jpeg', '.webp'])
+const CATALOG_SOURCE_URLS = new Set(CATALOG_WALLPAPERS
+ .map(({ sourceUrl }) => sourceUrl.toLowerCase())
+ .filter((sourceUrl) => sourceUrl.startsWith('extracted/')))
function userFolderId(fileName: string, filePath: string): string {
const legacyId = `user-folder-${fileName.replace(/[^a-zA-Z0-9_-]/g, '_')}`
@@ -401,6 +449,12 @@ function createGalleryWindow(): BrowserWindow {
}
function registerIpcHandlers(): void {
+ ipcMain.handle('wallpaper:save-first-frame', async (event, id: unknown) => {
+ requireTrustedIpcSender(event)
+ if (typeof id !== 'string' || !id) throw new Error('Choose a video wallpaper.')
+ if (await saveVideoFirstFrame(id, { restoreSuppressed: true })) notifyFirstFrameSaved()
+ })
+
ipcMain.handle('wallpaper:list', async (event, payload) => {
requireTrustedIpcSender(event)
const { category, query } = payload && typeof payload === 'object' ? payload : {}
@@ -444,7 +498,7 @@ function registerIpcHandlers(): void {
return true
})
- ipcMain.handle('wallpaper:delete', (event, payload) => {
+ ipcMain.handle('wallpaper:delete', async (event, payload) => {
requireTrustedIpcSender(event)
const { wallpaperId } = payload && typeof payload === 'object' ? payload : {}
if (typeof wallpaperId !== 'string') {
@@ -453,6 +507,16 @@ function registerIpcHandlers(): void {
const item = getWallpaperById(wallpaperId)
if (!item) throw new Error('Wallpaper does not exist')
+ if (item.id.startsWith('static-frame-') && item.type === 'image' && item.source === 'static') {
+ refreshPrunedAssignments(() => {
+ if (!deleteFirstFrameStillFromDb(item.id)) throw new Error('Could not remove the saved still.')
+ cancelFirstFrameCapture(item.id.slice('static-frame-'.length))
+ })
+ await removeSavedFrameFiles(item)
+ notifyCatalogChanged()
+ return true
+ }
+
// Never allow built-in catalog wallpapers to be physically deleted.
const BUILTIN_SOURCES = new Set(['ai', 'custom', 'local', 'motionbgs', 'vantage'])
if (BUILTIN_SOURCES.has(item.source)) {
@@ -629,6 +693,10 @@ function registerIpcHandlers(): void {
const sourceStat = fs.statSync(sourcePath)
if (!sourceStat.isFile()) throw new Error('Selected wallpaper is not a file')
const isVideo = /\.(mp4|mov|webm)$/i.test(filename)
+ const resolution = await getMediaDimensions(sourcePath)
+ if (!isHighResolution(resolution)) {
+ throw new Error('Choose a 2K or higher wallpaper with at least 1,440 pixels on its shorter edge.')
+ }
// Copy the import into the managed folder so the wallpaper is stable even if
// the original file is moved, deleted, or the path is outside the allow-list.
@@ -653,29 +721,22 @@ function registerIpcHandlers(): void {
}
const finalName = path.basename(targetPath)
- let previewPath = targetPath
- if (isVideo) {
- const generatedThumb = await generateVideoThumbnail(targetPath)
- if (generatedThumb) {
- previewPath = generatedThumb
- }
- }
-
const id = userFolderId(finalName, targetPath)
const newItem = {
id,
title: finalName.replace(/\.[^/.]+$/, ''),
category: isVideo ? ('imported' as const) : ('static' as const),
type: isVideo ? ('video' as const) : ('image' as const),
- previewUrl: toMediaUrl(previewPath),
+ previewUrl: isVideo ? '' : toMediaUrl(targetPath),
sourceUrl: toMediaUrl(targetPath),
- resolution: await getMediaDimensions(targetPath),
+ resolution,
source: isVideo ? ('user' as const) : ('static' as const),
license: 'User Imported File',
attribution: 'Local File'
}
addWallpaperToDb(newItem)
+ if (isVideo) queueFirstFrame(id)
notifyCatalogChanged()
return newItem
})
@@ -701,6 +762,9 @@ function registerIpcHandlers(): void {
return Promise.reject(new Error('Refusing to cache an untrusted media URL'))
}
return ensureCached(url).then((cachedPath) => {
+ if (!isQuitting) {
+ for (const video of getVideosBySourceUrl(url)) queueFirstFrame(video.id, cachedPath)
+ }
syncSelectedScreenSaverVideo()
return toMediaUrl(cachedPath)
})
@@ -799,6 +863,8 @@ function registerIpcHandlers(): void {
// App lifecycle
app.on('before-quit', () => {
isQuitting = true
+ stopFirstFrameCapture()
+ if (frameRefreshTimer) clearTimeout(frameRefreshTimer)
// RES-03: Cancel pending debounced scans before they can re-open the DB
// after closeDatabase() below (a late scan called initDatabase() again,
@@ -825,7 +891,8 @@ app.whenReady().then(async () => {
const userDataMediaDirs = [
path.join(userData, 'thumbnails'),
path.join(userData, 'screen-saver'),
- path.join(userData, 'highres-frames')
+ path.join(userData, 'highres-frames'),
+ getFirstFrameDirectory()
]
const allowedMediaBasePaths: string[] = [
getVantageWallpapersFolder(),
@@ -1015,6 +1082,8 @@ app.whenReady().then(async () => {
})
createGalleryWindow()
+ void backfillFirstFrames(getAllWallpapers('videos'), notifyFirstFrameSaved)
+ .catch((err) => console.warn('[FirstFrames] Could not find existing videos:', err))
})
app.on('activate', () => {
diff --git a/src/main/mediaInfo.ts b/src/main/mediaInfo.ts
index 9549898..541092a 100644
--- a/src/main/mediaInfo.ts
+++ b/src/main/mediaInfo.ts
@@ -2,6 +2,7 @@ import fs from 'node:fs'
import path from 'node:path'
import { execFile } from 'node:child_process'
import { promisify } from 'node:util'
+import { probeVideoDimensions } from './videoDimensions'
const execFileAsync = promisify(execFile)
const MEDIA_PROBE_TIMEOUT_MS = 15_000
@@ -14,64 +15,74 @@ interface Dimensions {
const DEFAULT_DIMENSIONS: Dimensions = { width: 1920, height: 1080 }
+async function readImageDimensions(filePath: string): Promise {
+ const file = await fs.promises.open(filePath, 'r')
+ try {
+ const header = Buffer.alloc(32)
+ const { bytesRead } = await file.read(header)
+ if (bytesRead < 10) return
+ if (header.toString('hex', 0, 8) === '89504e470d0a1a0a' && bytesRead >= 24) {
+ return { width: header.readUInt32BE(16), height: header.readUInt32BE(20) }
+ }
+ if (header.toString('ascii', 0, 6) === 'GIF87a' || header.toString('ascii', 0, 6) === 'GIF89a') {
+ return { width: header.readUInt16LE(6), height: header.readUInt16LE(8) }
+ }
+ if (header.toString('ascii', 0, 2) === 'BM' && bytesRead >= 26) {
+ const dibSize = header.readUInt32LE(14)
+ if (dibSize === 12) return { width: header.readUInt16LE(18), height: header.readUInt16LE(20) }
+ if (dibSize >= 40) return { width: header.readInt32LE(18), height: Math.abs(header.readInt32LE(22)) }
+ }
+ if (header.toString('ascii', 0, 4) === 'RIFF' && header.toString('ascii', 8, 12) === 'WEBP') {
+ const chunkType = header.toString('ascii', 12, 16)
+ if (chunkType === 'VP8X' && bytesRead >= 30) {
+ return { width: header.readUIntLE(24, 3) + 1, height: header.readUIntLE(27, 3) + 1 }
+ }
+ if (chunkType === 'VP8L' && bytesRead >= 25 && header[20] === 0x2f) {
+ const packed = header.readUInt32LE(21)
+ return { width: (packed & 0x3fff) + 1, height: ((packed >>> 14) & 0x3fff) + 1 }
+ }
+ if (chunkType === 'VP8 ' && bytesRead >= 30 && header.toString('hex', 23, 26) === '9d012a') {
+ return { width: header.readUInt16LE(26) & 0x3fff, height: header.readUInt16LE(28) & 0x3fff }
+ }
+ }
+ if (header.readUInt16BE(0) !== 0xffd8) return
+
+ const marker = Buffer.alloc(9)
+ const scanLimit = 4 * 1024 * 1024
+ let offset = 2
+ while (offset < scanLimit) {
+ const { bytesRead: markerBytes } = await file.read(marker, 0, marker.length, offset)
+ if (markerBytes < 4 || marker[0] !== 0xff) break
+ const code = marker[1]
+ if (code === 0xff) {
+ offset++
+ continue
+ }
+ if (code === 0xda || code === 0xd9) break
+ const size = marker.readUInt16BE(2)
+ if (size < 2) break
+ if (code >= 0xc0 && code <= 0xcf && ![0xc4, 0xc8, 0xcc].includes(code) && markerBytes >= 9 && size >= 8) {
+ return { width: marker.readUInt16BE(7), height: marker.readUInt16BE(5) }
+ }
+ offset += 2 + size
+ }
+ } finally {
+ await file.close()
+ }
+}
+
/**
- * Async dimension extractor for images and videos on macOS.
- * Uses lightweight binary header parsing for common image formats (PNG, JPEG)
- * and falls back to macOS `sips` / `mdls` CLI tools.
+ * Read image dimensions without decoding pixels. Use ffprobe or macOS
+ * metadata tools for media that cannot be measured from these headers.
*/
export async function getMediaDimensions(filePath: string): Promise {
try {
const ext = path.extname(filePath).toLowerCase()
- // 1. Fast binary header parsing for PNG/JPEG
- if (['.png', '.jpg', '.jpeg', '.webp'].includes(ext)) {
- const fd = await fs.promises.open(filePath, 'r')
- try {
- const buffer = Buffer.alloc(128)
- await fd.read(buffer, 0, 128, 0)
-
- // PNG: 8-byte signature, IHDR chunk width at offset 16, height at offset 20
- if (buffer.length >= 24 && buffer.toString('hex', 0, 8) === '89504e470d0a1a0a') {
- const width = buffer.readUInt32BE(16)
- const height = buffer.readUInt32BE(20)
- if (width > 0 && height > 0) return { width, height }
- }
-
- // JPEG: Find SOF marker (scan a bounded prefix instead of reading the whole file)
- if (buffer.length >= 4 && buffer[0] === 0xff && buffer[1] === 0xd8) {
- const scanLimit = 4 * 1024 * 1024
- const chunks: Buffer[] = [buffer]
- let scanned = buffer.length
- let seek = buffer.length
- while (seek < scanLimit) {
- const next = Buffer.alloc(256 * 1024)
- const { bytesRead } = await fd.read(next, 0, next.length, seek)
- if (bytesRead === 0) break
- chunks.push(next.subarray(0, bytesRead))
- scanned += bytesRead
- seek += bytesRead
- if (scanned >= scanLimit) break
- }
- const fullBuf = Buffer.concat(chunks)
- let offset = 2
- while (offset < fullBuf.length - 8) {
- if (fullBuf[offset] !== 0xff) { offset++; continue }
- const marker = fullBuf[offset + 1]
- if ((marker >= 0xc0 && marker <= 0xc3) || (marker >= 0xc5 && marker <= 0xc7) ||
- (marker >= 0xc9 && marker <= 0xcb) || (marker >= 0xcd && marker <= 0xcf)) {
- const height = fullBuf.readUInt16BE(offset + 5)
- const width = fullBuf.readUInt16BE(offset + 7)
- if (width > 0 && height > 0) return { width, height }
- }
- const blockLength = fullBuf.readUInt16BE(offset + 2)
- offset += 2 + blockLength
- }
- }
- } finally {
- await fd.close()
- }
+ if (['.png', '.jpg', '.jpeg', '.webp', '.gif', '.bmp'].includes(ext)) {
+ const dimensions = await readImageDimensions(filePath)
+ if (dimensions && dimensions.width > 0 && dimensions.height > 0) return dimensions
- // macOS sips fallback for WEBP, HEIC, TIFF, etc.
if (process.platform === 'darwin') {
try {
const { stdout } = await execFileAsync(
@@ -123,11 +134,14 @@ export async function getMediaDimensions(filePath: string): Promise
)
const wMatch = stdout.match(/kMDItemPixelWidth\s*=\s*(\d+)/)
const hMatch = stdout.match(/kMDItemPixelHeight\s*=\s*(\d+)/)
- if (wMatch && hMatch && parseInt(wMatch[1], 10) > 0) {
+ if (wMatch && hMatch && parseInt(wMatch[1], 10) > 0 && parseInt(hMatch[1], 10) > 0) {
return { width: parseInt(wMatch[1], 10), height: parseInt(hMatch[1], 10) }
}
} catch { /* ignore */ }
}
+
+ const dimensions = await probeVideoDimensions(filePath)
+ if (dimensions) return dimensions
}
} catch (err) {
console.warn('[MediaInfo] Could not read dimensions for:', filePath, err)
diff --git a/src/main/screenSaver.ts b/src/main/screenSaver.ts
index 4ee3d86..d2cf969 100644
--- a/src/main/screenSaver.ts
+++ b/src/main/screenSaver.ts
@@ -4,7 +4,7 @@ import fs from 'node:fs'
import path from 'node:path'
import crypto from 'node:crypto'
import { promisify } from 'node:util'
-import { getDisplayAssignment, getWallpaperById } from './db'
+import { getDisplayAssignment, getSavedFirstFrame, getWallpaperById } from './db'
import { getCachedFilePath, isAllowedRemoteMediaUrl } from './videoCache'
import { DEFAULT_WALLPAPER_ID, WallpaperItem } from '../shared/types'
import { fromMediaUrl } from './mediaUrl'
@@ -108,12 +108,16 @@ function getScreenSaverAssetDir(): string {
}
async function ensureLocalThumbnail(wallpaper: WallpaperItem): Promise {
- const previewPath = localPathFromMediaUrl(wallpaper.previewUrl)
- if (previewPath) return previewPath
-
const sourcePath = localPathFromMediaUrl(wallpaper.sourceUrl)
if (sourcePath && !isVideoPath(sourcePath)) return sourcePath
+ const firstFrame = getSavedFirstFrame(wallpaper.id)
+ const framePath = firstFrame && localPathFromMediaUrl(firstFrame.still.sourceUrl)
+ if (framePath && fs.existsSync(framePath)) return framePath
+
+ const previewPath = localPathFromMediaUrl(wallpaper.previewUrl)
+ if (previewPath) return previewPath
+
if (typeof wallpaper.previewUrl === 'string' && /^https?:\/\//i.test(wallpaper.previewUrl)) {
if (!isAllowedRemoteMediaUrl(wallpaper.previewUrl)) {
console.warn('[SystemWallpaper] Refusing to download thumbnail from untrusted host:', wallpaper.previewUrl)
@@ -305,7 +309,9 @@ async function syncLockScreenAndSystemWallpaper(): Promise {
let highResFramePath: string | null = null
if (videoPath) {
- highResFramePath = await getHighResVideoFrame(videoPath)
+ const savedFrame = getSavedFirstFrame(wallpaper.id)
+ const savedPath = savedFrame && localPathFromMediaUrl(savedFrame.still.sourceUrl)
+ highResFramePath = savedPath && fs.existsSync(savedPath) ? savedPath : await getHighResVideoFrame(videoPath)
}
const systemWallpaperPath = highResFramePath || thumbnailPath
diff --git a/src/main/staticLibrary.ts b/src/main/staticLibrary.ts
index 0e3fe61..c3c46ee 100644
--- a/src/main/staticLibrary.ts
+++ b/src/main/staticLibrary.ts
@@ -1,13 +1,20 @@
import { app } from 'electron'
import path from 'node:path'
import fs from 'node:fs'
-import type { WallpaperItem } from '../shared/types'
+import { isHighResolution, type WallpaperItem } from '../shared/types'
import { addWallpaperToDb, pruneStaticWallpapers, getWallpaperById } from './db'
import { toMediaUrl } from './mediaUrl'
import { getMediaDimensions } from './mediaInfo'
import { INITIAL_WALLPAPERS } from './contentSources'
const IMAGE_EXTS = ['.jpg', '.jpeg', '.png', '.webp', '.gif', '.bmp']
+const catalogTitles = new Map(INITIAL_WALLPAPERS.map((item) => [item.id, item.title]))
+const imageDimensions = new Map()
const SPECIAL_WORDS: Record = {
'2b': '2B',
@@ -24,12 +31,9 @@ const SPECIAL_WORDS: Record = {
function formatStaticTitle(base: string): string {
// 1. Try matching with initial catalog wallpapers
- const catalogItem = INITIAL_WALLPAPERS.find(
- (w) => w.id === base || w.id === `motionbgs-${base}` || w.id === `wallpaperx-${base}`
- )
- if (catalogItem && catalogItem.title) {
- return catalogItem.title
- }
+ const catalogTitle =
+ catalogTitles.get(base) || catalogTitles.get(`motionbgs-${base}`) || catalogTitles.get(`wallpaperx-${base}`)
+ if (catalogTitle) return catalogTitle
// 2. Clean prefix & separators
let cleaned = base
@@ -50,18 +54,12 @@ function formatStaticTitle(base: string): string {
.join(' ')
}
-interface ScannedImage {
- filePath: string
- name: string
-}
-
export interface StaticManifest {
items: WallpaperItem[]
presentIds: string[]
}
/** Folders that back the Static Wallpapers catalog:
- * - the bundled thumbnail preview collection (resources/thumbnails)
* - the extracted Wallpaper X `Papers` folder checked out next to the app
* - a user drop-in `Static` folder inside the managed Vantage Wallpapers folder
*/
@@ -69,11 +67,6 @@ export function getStaticSourceDirs(): string[] {
const dirs: string[] = []
const appRoot = app.isPackaged ? process.resourcesPath : app.getAppPath()
- const bundledThumbs = path.join(appRoot, 'resources', 'thumbnails')
- if (fs.existsSync(bundledThumbs)) {
- dirs.push(bundledThumbs)
- }
-
const extractedPapers = path.join(appRoot, 'Extracted_Video_Wallpapers', 'Papers')
if (fs.existsSync(extractedPapers)) {
dirs.push(extractedPapers)
@@ -100,75 +93,73 @@ export function isStaticSourcePath(filePath: string): boolean {
)
}
-function scanDir(dir: string): ScannedImage[] {
- let files: string[]
+async function scanDir(dir: string): Promise {
try {
- files = fs.readdirSync(dir)
+ const entries = await fs.promises.readdir(dir, { withFileTypes: true })
+ return entries
+ .filter((entry) =>
+ (entry.isFile() || entry.isSymbolicLink()) &&
+ !entry.name.startsWith('.') &&
+ IMAGE_EXTS.includes(path.extname(entry.name).toLowerCase())
+ )
+ .map((entry) => entry.name)
} catch {
return []
}
-
- return files
- .filter((f) => !f.startsWith('.'))
- .filter((f) => IMAGE_EXTS.includes(path.extname(f).toLowerCase()))
- .map((f) => {
- const filePath = path.join(dir, f)
- try {
- const stat = fs.statSync(filePath, { throwIfNoEntry: false })
- if (!stat || !stat.isFile()) return null
- return { filePath, name: f }
- } catch {
- return null
- }
- })
- .filter((f): f is ScannedImage => Boolean(f))
}
/** Scan all static source folders into a manifest of WallpaperItems */
export async function buildStaticManifest(): Promise {
- const presentIds: string[] = []
- const seen = new Set()
-
const tasks: Array<{ filePath: string; id: string; base: string; license: string; attribution: string }> = []
- for (const dir of getStaticSourceDirs()) {
+ const dirs = getStaticSourceDirs()
+ const filesByDir = await Promise.all(dirs.map(scanDir))
+ for (const [index, dir] of dirs.entries()) {
const { license, attribution } = licenseAndAttribution(dir)
- for (const entry of scanDir(dir)) {
- const base = entry.name.replace(/\.[^/.]+$/, '')
- const safeDir = path.basename(dir).replace(/[^a-zA-Z0-9_-]/g, '_')
+ const safeDir = path.basename(dir).replace(/[^a-zA-Z0-9_-]/g, '_')
+ for (const name of filesByDir[index]) {
+ const base = name.replace(/\.[^/.]+$/, '')
const safeBase = base.replace(/[^a-zA-Z0-9_-]/g, '_')
const id = `static-${safeDir}-${safeBase}`
- if (seen.has(id)) continue
- seen.add(id)
- presentIds.push(id)
- const formattedTitle = formatStaticTitle(base)
- tasks.push({ filePath: entry.filePath, id, base: formattedTitle, license, attribution })
+ tasks.push({ filePath: path.join(dir, name), id, base, license, attribution })
}
}
- const items: WallpaperItem[] = new Array(tasks.length)
+ const scannedPaths = new Set(tasks.map(({ filePath }) => filePath))
+ for (const filePath of imageDimensions.keys()) {
+ if (!scannedPaths.has(filePath)) imageDimensions.delete(filePath)
+ }
+
+ const scannedItems: (WallpaperItem | undefined)[] = new Array(tasks.length)
const CONCURRENCY = 6
let cursor = 0
const workers = Array.from({ length: Math.min(CONCURRENCY, tasks.length) }, async () => {
while (cursor < tasks.length) {
const taskIdx = cursor++
const task = tasks[taskIdx]
- const existing = getWallpaperById(task.id)
- // Static tiles represent the image that will actually be shown, not the
- // source video's advertised resolution. Never label a preview image as
- // 2K/4K merely because a matching catalog video has that resolution.
- const dims = existing?.sourceUrl === toMediaUrl(task.filePath)
- ? existing.resolution
+ const stat = await fs.promises.stat(task.filePath).catch(() => null)
+ if (!stat?.isFile()) {
+ imageDimensions.delete(task.filePath)
+ continue
+ }
+
+ const { mtimeMs, ctimeMs, size } = stat
+ const cached = imageDimensions.get(task.filePath)
+ const resolution = cached && cached.mtimeMs === mtimeMs && cached.ctimeMs === ctimeMs && cached.size === size
+ ? cached.resolution
: await getMediaDimensions(task.filePath)
+ imageDimensions.set(task.filePath, { mtimeMs, ctimeMs, size, resolution })
+ if (!isHighResolution(resolution)) continue
- items[taskIdx] = {
+ const url = toMediaUrl(task.filePath)
+ scannedItems[taskIdx] = {
id: task.id,
- title: task.base,
+ title: formatStaticTitle(task.base),
category: 'static',
type: 'image',
- previewUrl: toMediaUrl(task.filePath),
- sourceUrl: toMediaUrl(task.filePath),
- resolution: dims,
+ previewUrl: url,
+ sourceUrl: url,
+ resolution,
source: 'static',
license: task.license,
attribution: task.attribution
@@ -177,16 +168,16 @@ export async function buildStaticManifest(): Promise {
})
await Promise.all(workers)
- return { items: items.filter((item): item is WallpaperItem => Boolean(item)), presentIds }
+ const items = new Map()
+ for (const item of scannedItems) {
+ if (item && !items.has(item.id)) items.set(item.id, item)
+ }
+ return { items: [...items.values()], presentIds: [...items.keys()] }
}
function licenseAndAttribution(dir: string): { license: string; attribution: string } {
- const base = path.basename(dir).toLowerCase()
- if (base === 'thumbnails') {
- return {
- license: 'Vantage Bundled Preview Collection',
- attribution: 'Previews bundled with Vantage (motionBGS catalog)'
- }
+ if (path.basename(dir).toLowerCase() === 'static') {
+ return { license: 'Local Folder Import', attribution: 'Local File' }
}
return {
license: 'Wallpaper X Extracted Collection',
@@ -210,7 +201,7 @@ function staticWallpaperMatches(existing: WallpaperItem, item: WallpaperItem): b
}
/** Add new or changed static wallpapers to the DB and prune removed ones */
-export async function syncStaticWallpapers(): Promise {
+export async function syncStaticWallpapers(refreshAssignments: (prune: () => void) => void): Promise {
const { items, presentIds } = await buildStaticManifest()
let added = 0
for (const item of items) {
@@ -225,6 +216,6 @@ export async function syncStaticWallpapers(): Promise {
addWallpaperToDb(item)
}
}
- pruneStaticWallpapers(presentIds)
+ refreshAssignments(() => pruneStaticWallpapers(presentIds))
return added
}
diff --git a/src/main/thumbnailGenerator.ts b/src/main/thumbnailGenerator.ts
index 07ab523..fab127e 100644
--- a/src/main/thumbnailGenerator.ts
+++ b/src/main/thumbnailGenerator.ts
@@ -1,123 +1,6 @@
import { app } from 'electron'
-import { execFile } from 'node:child_process'
import fs from 'node:fs'
import path from 'node:path'
-import crypto from 'node:crypto'
-import { promisify } from 'node:util'
-
-const execFileAsync = promisify(execFile)
-const THUMBNAIL_GENERATION_TIMEOUT_MS = 60 * 1000
-const THUMBNAIL_GENERATION_MAX_BUFFER_BYTES = 512 * 1024
-
-function getThumbnailDir(): string {
- const thumbDir = path.join(app.getPath('userData'), 'thumbnails')
- if (!fs.existsSync(thumbDir)) {
- fs.mkdirSync(thumbDir, { recursive: true })
- }
- return thumbDir
-}
-
-import { getMediaDimensions } from './mediaInfo'
-
-/**
- * Thumbnail file name is derived from a hash of the source path and target size so
- * higher-resolution thumbnails (e.g. 4K/2K upgrades) take effect cleanly.
- */
-function thumbnailStem(videoPath: string, targetSize: number): string {
- const hash = crypto.createHash('sha1').update(`${videoPath}:${targetSize}`).digest('hex').slice(0, 16)
- return `${path.basename(videoPath)}-${hash}`
-}
-
-/**
- * Generates a thumbnail image from the first frame of a video file.
- * Automatically generates high-definition 4K (3840px) or 2K (2560px) thumbnails
- * matching the original media's resolution.
- */
-export async function generateVideoThumbnail(videoPath: string): Promise {
- if (!videoPath || typeof videoPath !== 'string' || !fs.existsSync(videoPath)) {
- return null
- }
-
- const dims = await getMediaDimensions(videoPath)
- let targetSize = 1280
- if (dims.width >= 3840) {
- targetSize = 3840
- } else if (dims.width >= 2560) {
- targetSize = 2560
- } else if (dims.width >= 1920) {
- targetSize = 1920
- } else if (dims.width > 0) {
- targetSize = Math.max(dims.width, 1280)
- }
-
- const thumbDir = getThumbnailDir()
- const stem = thumbnailStem(videoPath, targetSize)
- const expectedPngName = `${stem}.png`
- const targetThumbPath = path.join(thumbDir, expectedPngName)
-
- if (fs.existsSync(targetThumbPath) && fs.statSync(targetThumbPath).size > 0) {
- return targetThumbPath
- }
-
- // Strategy 1: macOS QuickLook thumbnail generator (qlmanage)
- if (process.platform === 'darwin') {
- try {
- await execFileAsync(
- '/usr/bin/qlmanage',
- ['-t', '-s', String(targetSize), '-o', thumbDir, videoPath],
- { timeout: THUMBNAIL_GENERATION_TIMEOUT_MS, maxBuffer: THUMBNAIL_GENERATION_MAX_BUFFER_BYTES }
- )
- // qlmanage writes .png; normalize to the derived stable name
- const qlOutput = path.join(thumbDir, `${path.basename(videoPath)}.png`)
- if (fs.existsSync(qlOutput)) {
- let copied = false
- try {
- if (fs.statSync(qlOutput).size > 0) {
- fs.copyFileSync(qlOutput, targetThumbPath)
- copied = true
- }
- } finally {
- try {
- fs.unlinkSync(qlOutput)
- } catch {
- /* ignore cleanup failure */
- }
- }
- if (copied && fs.existsSync(targetThumbPath) && fs.statSync(targetThumbPath).size > 0) {
- console.log(`[ThumbnailGenerator] Generated ${targetSize}px thumbnail:`, targetThumbPath)
- return targetThumbPath
- }
- }
- } catch (err) {
- console.warn('[ThumbnailGenerator] qlmanage failed:', err)
- }
- }
-
- // Strategy 2: ffmpeg fallback if available
- try {
- const jpgTarget = path.join(thumbDir, `${stem}.jpg`)
- await execFileAsync(
- 'ffmpeg',
- [
- '-y',
- '-ss', '00:00:01',
- '-i', videoPath,
- '-vframes', '1',
- '-q:v', '2',
- jpgTarget
- ],
- { timeout: THUMBNAIL_GENERATION_TIMEOUT_MS, maxBuffer: THUMBNAIL_GENERATION_MAX_BUFFER_BYTES }
- )
- if (fs.existsSync(jpgTarget) && fs.statSync(jpgTarget).size > 0) {
- console.log(`[ThumbnailGenerator] Generated ${targetSize}px thumbnail via ffmpeg:`, jpgTarget)
- return jpgTarget
- }
- } catch {
- // ignore
- }
-
- return null
-}
/**
* Deletes generated thumbnails that are no longer referenced by any wallpaper
diff --git a/src/main/videoDimensions.ts b/src/main/videoDimensions.ts
new file mode 100644
index 0000000..b5d53ec
--- /dev/null
+++ b/src/main/videoDimensions.ts
@@ -0,0 +1,142 @@
+import { net, session, WebContentsView } from 'electron'
+import { randomUUID } from 'node:crypto'
+import { extname } from 'node:path'
+import { pathToFileURL } from 'node:url'
+import { MIN_WALLPAPER_SHORT_EDGE, type WallpaperItem } from '../shared/types'
+
+const probeSources = new Map()
+let probeSession: Electron.Session | undefined
+const PROBE_DOCUMENT = 'media://vantage-probe/'
+const MAX_FRAME_EDGE = 3840
+const THUMBNAIL_EDGE = 640
+
+async function readLocalVideo(filePath: string, script: string, timeoutMs: number): Promise {
+ if (!probeSession) {
+ probeSession = session.fromPartition('vantage-video-metadata')
+ probeSession.protocol.handle('media', async (request) => {
+ if (request.url === PROBE_DOCUMENT) {
+ return new Response('', {
+ headers: {
+ 'Content-Type': 'text/html; charset=utf-8',
+ 'Content-Security-Policy': "default-src 'none'; media-src 'self'"
+ }
+ })
+ }
+
+ const fileUrl = probeSources.get(request.url)
+ if (fileUrl) {
+ try {
+ return await net.fetch(fileUrl, { headers: request.headers })
+ } catch { /* the source may have been moved or become unreadable */ }
+ }
+ return new Response(null, { status: 404 })
+ })
+ }
+
+ const mediaUrl = `${PROBE_DOCUMENT}${randomUUID()}${extname(filePath).toLowerCase()}`
+ const probe = new WebContentsView({
+ webPreferences: { session: probeSession, sandbox: true, backgroundThrottling: false }
+ })
+ const { webContents } = probe
+ let timer: ReturnType | undefined
+ probeSources.set(mediaUrl, pathToFileURL(filePath).href)
+
+ try {
+ const readVideo = async (): Promise => {
+ await webContents.loadURL(PROBE_DOCUMENT)
+ return webContents.executeJavaScript(`(${script})(${JSON.stringify(mediaUrl)})`)
+ }
+ return await Promise.race([
+ readVideo(),
+ new Promise((resolve) => { timer = setTimeout(() => resolve(null), timeoutMs) })
+ ])
+ } catch {
+ return null
+ } finally {
+ clearTimeout(timer)
+ probeSources.delete(mediaUrl)
+ if (!webContents.isDestroyed()) webContents.close()
+ }
+}
+
+/** Use Chromium's metadata reader when system utilities cannot identify a video. */
+export function probeVideoDimensions(filePath: string): Promise {
+ return readLocalVideo(filePath, `(url) => new Promise((resolve) => {
+ const video = document.createElement('video')
+ video.preload = 'metadata'
+ video.onloadedmetadata = () => resolve(video.videoWidth && video.videoHeight
+ ? { width: video.videoWidth, height: video.videoHeight }
+ : null)
+ video.onerror = () => resolve(null)
+ video.src = url
+ document.body.append(video)
+ })`, 5000)
+}
+
+export interface CapturedVideoFrame {
+ resolution: WallpaperItem['resolution']
+ full: Buffer
+ thumbnail: Buffer
+}
+
+/** Decode the first displayed video frame using the same codecs as wallpaper playback. */
+export async function captureVideoFirstFrame(filePath: string): Promise {
+ const frame = await readLocalVideo<{
+ resolution: WallpaperItem['resolution']
+ full: string
+ thumbnail: string
+ }>(filePath, `(url) => new Promise((resolve) => {
+ const video = document.createElement('video')
+ video.preload = 'auto'
+ video.muted = true
+ video.onerror = () => resolve(null)
+ video.onloadeddata = () => {
+ const width = video.videoWidth
+ const height = video.videoHeight
+ const shortEdge = Math.min(width, height)
+ const longEdge = Math.max(width, height)
+ if (shortEdge < ${MIN_WALLPAPER_SHORT_EDGE}) {
+ resolve(null)
+ return
+ }
+
+ // Keep ultrawide media above the resolution floor while avoiding unnecessary
+ // 8K stills from larger conventional aspect ratios.
+ const fullScale = Math.min(1, Math.max(${MAX_FRAME_EDGE} / longEdge, ${MIN_WALLPAPER_SHORT_EDGE} / shortEdge))
+ const thumbScale = Math.min(1, ${THUMBNAIL_EDGE} / longEdge)
+ const canvas = document.createElement('canvas')
+ const context = canvas.getContext('2d', { alpha: false })
+ if (!context) {
+ resolve(null)
+ return
+ }
+
+ const jpeg = (scale, quality) => {
+ canvas.width = Math.round(width * scale)
+ canvas.height = Math.round(height * scale)
+ context.imageSmoothingQuality = 'high'
+ context.drawImage(video, 0, 0, canvas.width, canvas.height)
+ return canvas.toDataURL('image/jpeg', quality)
+ }
+
+ try {
+ const full = jpeg(fullScale, 0.87)
+ const resolution = { width: canvas.width, height: canvas.height }
+ const thumbnail = jpeg(thumbScale, 0.82)
+ resolve({ full, thumbnail, resolution })
+ } catch {
+ resolve(null)
+ }
+ }
+ video.src = url
+ document.body.append(video)
+ })`, 40000)
+
+ const jpegPrefix = 'data:image/jpeg;base64,'
+ if (!frame?.full.startsWith(jpegPrefix) || !frame.thumbnail.startsWith(jpegPrefix)) return null
+ return {
+ resolution: frame.resolution,
+ full: Buffer.from(frame.full.slice(jpegPrefix.length), 'base64'),
+ thumbnail: Buffer.from(frame.thumbnail.slice(jpegPrefix.length), 'base64')
+ }
+}
diff --git a/src/preload/gallery.ts b/src/preload/gallery.ts
index d0e755a..1e3570a 100644
--- a/src/preload/gallery.ts
+++ b/src/preload/gallery.ts
@@ -7,6 +7,7 @@ contextBridge.exposeInMainWorld('galleryApi', {
getCategoryCounts: () => ipcRenderer.invoke('wallpaper:counts'),
applyToDisplay: (displayId: number, wallpaperId: string) =>
ipcRenderer.invoke('wallpaper:apply-to-display', { displayId, wallpaperId }),
+ saveFirstFrame: (wallpaperId: string) => ipcRenderer.invoke('wallpaper:save-first-frame', wallpaperId),
toggleFavorite: (wallpaperId: string, isFavorite: boolean) =>
ipcRenderer.invoke('wallpaper:favorite', { wallpaperId, isFavorite }),
deleteWallpaper: (wallpaperId: string) =>
diff --git a/src/renderer/gallery/App.tsx b/src/renderer/gallery/App.tsx
index e2ea5a8..8b19306 100644
--- a/src/renderer/gallery/App.tsx
+++ b/src/renderer/gallery/App.tsx
@@ -185,7 +185,8 @@ export const App: React.FC = () => {
Library
- {LIBRARY.map(navItem)}
+ {/* Hide the Vertical collection when the library has none (e.g. under the 1440px quality floor). */}
+ {LIBRARY.filter((c) => c.id !== 'portrait' || (counts.portrait ?? 0) > 0).map(navItem)}
diff --git a/src/renderer/gallery/components/ui.tsx b/src/renderer/gallery/components/ui.tsx
index 4c64aa8..2eee271 100644
--- a/src/renderer/gallery/components/ui.tsx
+++ b/src/renderer/gallery/components/ui.tsx
@@ -60,10 +60,10 @@ interface MediaThumbProps {
/** Tile/hero artwork: lazy still image, hover-to-play video, or procedural preview. */
export const MediaThumb: React.FC = ({ item, active = false, className = 'relative' }) => {
- const [imgError, setImgError] = useState(false)
- const [imgLoaded, setImgLoaded] = useState(false)
- const [videoError, setVideoError] = useState(false)
- const canPlayVideo = item.type === 'video' && !videoError && !/^https?:\/\//i.test(item.sourceUrl)
+ const [loadedImage, setLoadedImage] = useState(null)
+ const [failedImage, setFailedImage] = useState(null)
+ const [failedVideo, setFailedVideo] = useState(null)
+ const canPlayVideo = item.type === 'video' && failedVideo !== item.sourceUrl && !/^https?:\/\//i.test(item.sourceUrl)
if (item.type === 'generative') {
return (
@@ -77,10 +77,14 @@ export const MediaThumb: React.FC = ({ item, active = false, cl
)
}
- const src = item.previewUrl || item.sourceUrl
+ const src = item.type === 'video'
+ ? (item.previewUrl === item.sourceUrl ? '' : item.previewUrl)
+ : item.previewUrl || item.sourceUrl
+ const imgLoaded = loadedImage === src
+ const imgError = failedImage === src
return (
- {!imgLoaded && !imgError &&
}
+ {src && !imgLoaded && !imgError &&
}
{imgError || !src ? (
@@ -88,24 +92,26 @@ export const MediaThumb: React.FC
= ({ item, active = false, cl
) : (
setImgLoaded(true)}
- onError={() => setImgError(true)}
+ onLoad={() => setLoadedImage(src)}
+ onError={() => setFailedImage(src)}
className={`absolute inset-0 h-full w-full object-cover transition duration-700 ${imgLoaded ? 'opacity-100' : 'opacity-0'} ${active ? 'scale-[1.06]' : 'scale-100'}`}
/>
)}
{active && canPlayVideo && (
setVideoError(true)}
+ onError={() => setFailedVideo(item.sourceUrl)}
className="absolute inset-0 h-full w-full object-cover animate-fade-in"
/>
)}
diff --git a/src/renderer/gallery/devMock.ts b/src/renderer/gallery/devMock.ts
index d28f7ec..d4a40a0 100644
--- a/src/renderer/gallery/devMock.ts
+++ b/src/renderer/gallery/devMock.ts
@@ -4,16 +4,19 @@
* main.tsx only imports it when galleryApi is missing in a dev build.
*/
import type { WallpaperItem, DisplayInfo, AppSettings } from '../../shared/types'
+import { isHighResolution, isVerticalVideo } from '../../shared/types'
declare const __CATALOG_ROOT__: string
export async function installDevMock(): Promise {
const catalog: WallpaperItem[] = await fetch(`/@fs${__CATALOG_ROOT__}/resources/catalog.json`).then((r) => r.json())
- const items = catalog.map((i) => ({
- ...i,
- previewUrl: i.previewUrl ? `/@fs${__CATALOG_ROOT__}/${i.previewUrl}` : '',
- is_favorite: false
- }))
+ const items = catalog
+ .filter((item) => item.type === 'generative' || isHighResolution(item.resolution))
+ .map((item) => ({
+ ...item,
+ previewUrl: item.previewUrl.startsWith('resources/') ? `/@fs${__CATALOG_ROOT__}/${item.previewUrl}` : item.previewUrl,
+ is_favorite: false
+ }))
const favs = new Set()
const displays: DisplayInfo[] = [
{ id: 1, label: 'Built-in Retina Display', bounds: { x: 0, y: 0, width: 1512, height: 982 }, scaleFactor: 2, assignedWallpaperId: 'gen-iris-bloom', performanceMode: 'balanced' },
@@ -25,13 +28,17 @@ export async function installDevMock(): Promise {
const filter = (category?: string, query?: string) =>
items
.map((i) => ({ ...i, is_favorite: favs.has(i.id) }))
- .filter((i) => (category === 'favorites' ? i.is_favorite : !category || category === 'all' ? true : i.category === category))
+ .filter((i) => {
+ if (category === 'favorites') return i.is_favorite
+ if (category === 'portrait') return isVerticalVideo(i)
+ return !category || category === 'all' || i.category === category
+ })
.filter((i) => !query || `${i.title} ${i.category}`.toLowerCase().includes(query.toLowerCase()))
window.galleryApi = {
getWallpapers: async (c, q) => filter(c, q),
getCategoryCounts: async () => {
- const counts: Record = { all: items.length, favorites: favs.size, static: 0 }
+ const counts: Record = { all: items.length, favorites: favs.size, static: 0, portrait: items.filter(isVerticalVideo).length }
items.forEach((i) => (counts[i.category] = (counts[i.category] || 0) + 1))
return counts
},
diff --git a/src/renderer/gallery/screens/Gallery.tsx b/src/renderer/gallery/screens/Gallery.tsx
index a0d6403..2c16d4b 100644
--- a/src/renderer/gallery/screens/Gallery.tsx
+++ b/src/renderer/gallery/screens/Gallery.tsx
@@ -9,10 +9,10 @@ const PAGE = 48
const isMac = navigator.userAgent.includes('Mac')
const CATEGORY_TITLES: Record = {
- all: { title: 'Discover', blurb: 'Every living wallpaper in your library.' },
+ all: { title: 'Discover', blurb: '2K and higher live wallpapers.' },
favorites: { title: 'Favorites', blurb: 'The ones you keep coming back to.' },
imported: { title: 'My Imports', blurb: 'Your own videos and images.' },
- anime: { title: 'Anime', blurb: 'Animated scenes from your favorite series.' },
+ anime: { title: 'Anime', blurb: 'Scenes and characters from anime, plus original anime-style art.' },
games: { title: 'Gaming', blurb: 'Splash art and worlds from games.' },
heroes: { title: 'Heroes & Comics', blurb: 'Capes, masks and multiverses.' },
nature: { title: 'Nature', blurb: 'Forests, oceans, skies and seasons.' },
@@ -20,8 +20,8 @@ const CATEGORY_TITLES: Record = {
cars: { title: 'Cars & Streets', blurb: 'Night drives, neon and rain.' },
'ai-art': { title: 'Digital Art', blurb: 'Lo-fi, fantasy and illustrated loops.' },
generative: { title: 'Generative', blurb: 'Procedural scenes rendered live on your GPU. Zero downloads, never repeats.' },
- static: { title: 'Still Images', blurb: 'High-resolution stills, plus anything in your Static folder.' },
- portrait: { title: 'Vertical', blurb: '9:16 live wallpapers made for rotated monitors.' }
+ static: { title: 'Still Images', blurb: '2K and higher frames from live wallpapers and images from your Static folder.' },
+ portrait: { title: 'Vertical', blurb: '2K and higher portrait videos.' }
}
const FORMATS: { id: FormatFilter; label: string }[] = [
@@ -31,17 +31,23 @@ const FORMATS: { id: FormatFilter; label: string }[] = [
{ id: '4k', label: '4K' },
{ id: 'vertical', label: 'Vertical' }
]
+
const SORTS: { id: SortMode; label: string }[] = [
{ id: 'featured', label: 'Featured' },
{ id: 'az', label: 'A → Z' },
{ id: 'resolution', label: 'Resolution' }
]
-const WallpaperTile: React.FC<{ item: WallpaperItem; index: number; tall?: boolean }> = ({ item, index, tall = false }) => {
+const WallpaperTile = React.memo(function WallpaperTile({ item, index, tall = false }: { item: WallpaperItem; index: number; tall?: boolean }) {
const [hover, setHover] = useState(false)
const timer = useRef | null>(null)
- const { activeCategory, toggleFavorite, deleteWallpaper, setSelectedWallpaper, applyWallpaper, selectedDisplayId, displays } = useGalleryStore()
- const isLive = displays.some((d) => d.assignedWallpaperId === item.id)
+ const showDelete = useGalleryStore((state) => state.activeCategory === 'imported')
+ const toggleFavorite = useGalleryStore((state) => state.toggleFavorite)
+ const deleteWallpaper = useGalleryStore((state) => state.deleteWallpaper)
+ const setSelectedWallpaper = useGalleryStore((state) => state.setSelectedWallpaper)
+ const applyWallpaper = useGalleryStore((state) => state.applyWallpaper)
+ const selectedDisplayId = useGalleryStore((state) => state.selectedDisplayId)
+ const isLive = useGalleryStore((state) => state.displays.some((display) => display.assignedWallpaperId === item.id))
const isUserItem = item.source === 'user' || item.id.startsWith('user-')
useEffect(() => () => { if (timer.current) clearTimeout(timer.current) }, [])
@@ -83,7 +89,7 @@ const WallpaperTile: React.FC<{ item: WallpaperItem; index: number; tall?: boole
- {activeCategory === 'imported' && isUserItem && (
+ {showDelete && isUserItem && (
{
e.stopPropagation()
@@ -132,7 +138,7 @@ const WallpaperTile: React.FC<{ item: WallpaperItem; index: number; tall?: boole
)
-}
+})
const NowPlaying: React.FC = () => {
const { displays, selectedDisplayId, wallpapers, shuffle, setSelectedWallpaper } = useGalleryStore()
@@ -175,8 +181,15 @@ const EmptyState: React.FC<{ category: string; query: string }> = ({ category, q
: category === 'imported'
? { title: 'Bring your own', body: 'Import an MP4, MOV, WebM or image — or drop files into the watched folder. Wallpapers you download from MoeWalls appear here automatically.' }
: category === 'static'
- ? { title: 'No still images yet', body: 'Drop JPG, PNG or WebP files into Pictures/Vantage Wallpapers/Static.' }
- : { title: 'Nothing here yet', body: 'Try another category or format.' }
+ ? {
+ title: 'No still images yet',
+ body: window.galleryApi?.saveFirstFrame
+ ? 'Open a video wallpaper and choose Save first frame, or import a 2K or higher image.'
+ : 'Import a 2K or higher image.'
+ }
+ : category === 'portrait'
+ ? { title: 'No vertical live wallpapers yet', body: 'Import a portrait video at 1440 × 2560, 2160 × 3840 or a similar 2K+ resolution.' }
+ : { title: 'Nothing here yet', body: 'Try another category or format.' }
return (
@@ -188,7 +201,7 @@ const EmptyState: React.FC<{ category: string; query: string }> = ({ category, q
{query && setSearchQuery('')}>Clear search }
- {(category === 'imported' || category === 'static') && (
+ {(category === 'imported' || category === 'static' || category === 'portrait') && (
<>
importFile()}>Import file
openWallpaperFolder()}>Open folder
@@ -218,7 +231,7 @@ export const Gallery: React.FC = () => {
scroller.current?.scrollTo({ top: 0 })
}, [activeCategory, searchQuery, formatFilter, sortMode])
- // Render tiles in pages as the user scrolls instead of mounting 13,000+ cards at once.
+ // Mount more tiles as the user scrolls.
useEffect(() => {
const el = sentinel.current
if (!el) return
@@ -313,7 +326,7 @@ export const Gallery: React.FC = () => {
{activeCategory !== 'generative' && activeCategory !== 'static' && activeCategory !== 'portrait' && (
- {FORMATS.map((f) => (
+ {FORMATS.filter((f) => f.id !== 'vertical' || (counts.portrait ?? 0) > 0).map((f) => (
setFormatFilter(f.id)} aria-pressed={formatFilter === f.id} className={`chip ${formatFilter === f.id ? 'chip-on' : ''}`}>
{f.id === 'video' && }
{f.id === 'generative' && }
diff --git a/src/renderer/gallery/screens/ItemDetail.tsx b/src/renderer/gallery/screens/ItemDetail.tsx
index 2a13ada..f689283 100644
--- a/src/renderer/gallery/screens/ItemDetail.tsx
+++ b/src/renderer/gallery/screens/ItemDetail.tsx
@@ -3,7 +3,8 @@ import { useGalleryStore, WallpaperItem, resolutionLabel } from '../store/useGal
import { ApertureIrisIcon } from '../components/ApertureIrisIcon'
import { MediaThumb } from '../components/ui'
import { GenerativeIcon } from '../components/GenerativeIcon'
-import { X, Heart, Monitor, Check, Trash2, Layers, ChevronLeft, ChevronRight } from 'lucide-react'
+import { X, Heart, Monitor, Check, Trash2, Layers, ChevronLeft, ChevronRight, ImagePlus } from 'lucide-react'
+import { isHighResolution } from '../../../shared/types'
interface ItemDetailProps {
item: WallpaperItem
@@ -11,9 +12,13 @@ interface ItemDetailProps {
}
export const ItemDetail: React.FC = ({ item, onClose }) => {
- const { displays, applyWallpaper, applyToAllDisplays, toggleFavorite, deleteWallpaper, stepSelected, activeCategory } = useGalleryStore()
+ const { displays, applyWallpaper, applyToAllDisplays, saveFirstFrame, savingFirstFrames, toggleFavorite, deleteWallpaper, stepSelected, activeCategory } = useGalleryStore()
const isUserItem = item.source === 'user' || item.id.startsWith('user-')
+ const isGeneratedStill = item.type === 'image' && item.id.startsWith('static-frame-')
+ const canDelete = isGeneratedStill || (activeCategory === 'imported' && isUserItem)
const isAllAssigned = displays.length > 0 && displays.every((d) => d.assignedWallpaperId === item.id)
+ const canSaveStill = item.type === 'video' && isHighResolution(item.resolution) && Boolean(window.galleryApi?.saveFirstFrame)
+ const isSavingStill = savingFirstFrames.has(item.id)
const [buffering, setBuffering] = useState(item.type === 'video')
const [videoFailed, setVideoFailed] = useState(false)
const dialogRef = useRef(null)
@@ -116,13 +121,11 @@ export const ItemDetail: React.FC = ({ item, onClose }) => {
{item.title}
- {activeCategory === 'imported' && isUserItem && (
+ {canDelete && (
{
- deleteWallpaper(item.id)
- onClose()
- }}
- aria-label="Delete wallpaper"
+ type="button"
+ onClick={() => deleteWallpaper(item.id)}
+ aria-label={isGeneratedStill ? 'Remove still image' : 'Delete wallpaper'}
className="grid h-9 w-9 place-items-center rounded-xl text-ink-dim ring-1 ring-line transition hover:bg-ember/10 hover:text-ember hover:ring-ember/30"
>
@@ -189,6 +192,17 @@ export const ItemDetail: React.FC = ({ item, onClose }) => {
)
})}
+ {canSaveStill && (
+
saveFirstFrame(item.id)}
+ >
+ {isSavingStill ? : }
+ {isSavingStill ? 'Saving first frame…' : 'Save first frame'}
+
+ )}
diff --git a/src/renderer/gallery/store/useGalleryStore.ts b/src/renderer/gallery/store/useGalleryStore.ts
index 080be0a..dfdeac0 100644
--- a/src/renderer/gallery/store/useGalleryStore.ts
+++ b/src/renderer/gallery/store/useGalleryStore.ts
@@ -1,4 +1,5 @@
import { create } from 'zustand'
+import { isHighResolution, isVerticalVideo } from '../../../shared/types'
import type { WallpaperItem, DisplayInfo } from '../../../shared/types'
export type { WallpaperItem, DisplayInfo }
@@ -24,6 +25,7 @@ interface GalleryStore {
displays: DisplayInfo[]
selectedDisplayId: number | null
selectedWallpaper: WallpaperItem | null
+ savingFirstFrames: ReadonlySet
activeScreen: Screen
isLoading: boolean
error: string | null
@@ -43,6 +45,7 @@ interface GalleryStore {
fetchDisplays: () => Promise
applyWallpaper: (displayId: number, wallpaperId: string) => Promise
applyToAllDisplays: (wallpaperId: string) => Promise
+ saveFirstFrame: (wallpaperId: string) => Promise
shuffle: () => Promise
toggleFavorite: (wallpaperId: string, currentFav?: boolean) => Promise
deleteWallpaper: (wallpaperId: string) => Promise
@@ -79,8 +82,8 @@ export function visibleWallpapers(items: WallpaperItem[], format: FormatFilter,
let list = items
if (format === 'video') list = list.filter((i) => i.type === 'video')
else if (format === 'generative') list = list.filter((i) => i.type === 'generative')
- else if (format === '4k') list = list.filter((i) => i.resolution.width >= 3840)
- else if (format === 'vertical') list = list.filter(isPortrait)
+ else if (format === '4k') list = list.filter((i) => is4K(i.resolution))
+ else if (format === 'vertical') list = list.filter(isVerticalVideo)
if (sort === 'az') list = [...list].sort((a, b) => a.title.localeCompare(b.title))
else if (sort === 'resolution') list = [...list].sort((a, b) => b.resolution.width * b.resolution.height - a.resolution.width * a.resolution.height)
return list
@@ -90,8 +93,17 @@ export function visibleWallpapers(items: WallpaperItem[], format: FormatFilter,
export const isPortrait = (item: WallpaperItem): boolean => item.resolution.height > item.resolution.width
export const isPortraitDisplay = (d: DisplayInfo | undefined): boolean => !!d && d.bounds.height > d.bounds.width
-export const resolutionLabel = (item: WallpaperItem): string =>
- item.type === 'generative' ? 'Live' : isPortrait(item) ? `Vertical ${item.resolution.height >= 1920 ? 'FHD' : 'HD'}` : item.resolution.width >= 3840 ? '4K' : item.resolution.width >= 2560 ? '2K' : item.resolution.width >= 1920 ? 'HD' : `${item.resolution.height || 1080}p`
+function is4K({ width, height }: WallpaperItem['resolution']): boolean {
+ return Math.min(width, height) >= 2160 && Math.max(width, height) >= 3840
+}
+
+export function resolutionLabel(item: WallpaperItem): string {
+ if (item.type === 'generative') return 'Live'
+ const { width, height } = item.resolution
+ const shortEdge = Math.min(width, height)
+ const label = is4K(item.resolution) ? '4K' : isHighResolution(item.resolution) ? '2K' : `${shortEdge}p`
+ return isPortrait(item) ? `Vertical ${label}` : label
+}
export const useGalleryStore = create((set, get) => ({
activeCategory: 'all',
@@ -104,6 +116,7 @@ export const useGalleryStore = create((set, get) => ({
displays: [],
selectedDisplayId: null,
selectedWallpaper: null,
+ savingFirstFrames: new Set(),
activeScreen: 'gallery',
isLoading: false,
error: null,
@@ -204,6 +217,25 @@ export const useGalleryStore = create((set, get) => ({
}
},
+ saveFirstFrame: async (wallpaperId) => {
+ const api = window.galleryApi
+ if (!api?.saveFirstFrame || get().savingFirstFrames.has(wallpaperId)) return
+
+ set((state) => ({ savingFirstFrames: new Set(state.savingFirstFrames).add(wallpaperId) }))
+ try {
+ await api.saveFirstFrame(wallpaperId)
+ get().toast('First frame saved to Still Images')
+ } catch (error) {
+ get().toast(errorMessage(error, 'Unable to save the first frame.'), 'error')
+ } finally {
+ set((state) => {
+ const savingFirstFrames = new Set(state.savingFirstFrames)
+ savingFirstFrames.delete(wallpaperId)
+ return { savingFirstFrames }
+ })
+ }
+ },
+
shuffle: async () => {
const { wallpapers, formatFilter, sortMode, selectedDisplayId, displays } = get()
const list = visibleWallpapers(wallpapers, formatFilter, sortMode)
@@ -241,7 +273,8 @@ export const useGalleryStore = create((set, get) => ({
deleteWallpaper: async (wallpaperId) => {
if (!window.galleryApi) return
try {
- await window.galleryApi.deleteWallpaper(wallpaperId)
+ const deleted = await window.galleryApi.deleteWallpaper(wallpaperId)
+ if (!deleted) throw new Error('Unable to delete wallpaper.')
if (get().selectedWallpaper?.id === wallpaperId) set({ selectedWallpaper: null })
await get().fetchWallpapers(true)
get().fetchCounts()
diff --git a/src/renderer/preload.d.ts b/src/renderer/preload.d.ts
index ad13b82..e743fde 100644
--- a/src/renderer/preload.d.ts
+++ b/src/renderer/preload.d.ts
@@ -6,6 +6,7 @@ declare global {
getWallpapers: (category?: string, query?: string) => Promise
getCategoryCounts: () => Promise>
applyToDisplay: (displayId: number, wallpaperId: string) => Promise
+ saveFirstFrame?: (wallpaperId: string) => Promise
toggleFavorite: (wallpaperId: string, isFavorite: boolean) => Promise
deleteWallpaper: (wallpaperId: string) => Promise
getDisplays: () => Promise
diff --git a/src/shared/types.ts b/src/shared/types.ts
index 647be73..c1b062d 100644
--- a/src/shared/types.ts
+++ b/src/shared/types.ts
@@ -22,6 +22,18 @@ export interface WallpaperItem {
is_favorite?: boolean
}
+export const MIN_WALLPAPER_SHORT_EDGE = 1440
+
+export function isHighResolution({ width, height }: WallpaperItem['resolution']): boolean {
+ return width >= MIN_WALLPAPER_SHORT_EDGE && height >= MIN_WALLPAPER_SHORT_EDGE
+}
+
+export function isVerticalVideo(item: WallpaperItem): boolean {
+ return item.type === 'video'
+ && item.resolution.height > item.resolution.width
+ && isHighResolution(item.resolution)
+}
+
export interface DisplayInfo {
id: number
label: string
diff --git a/website/index.html b/website/index.html
index 42102ee..a7a9b4e 100644
--- a/website/index.html
+++ b/website/index.html
@@ -4,24 +4,24 @@
Vantage — Live Wallpapers for Mac & Windows
-
+
-
+
-
+
-
-
+
+
-
-
+
+
@@ -85,8 +85,8 @@ Living wallpapers, zero compromise.
The library
-
13,000 + wallpapers that refuse to sit still.
-
Anime · Gaming · Heroes · Cars · Nature · Space · Digital art · Generative · Vertical (9:16)
+
7,300 + wallpapers that refuse to sit still.
+
Anime · Gaming · Heroes · Cars · Nature · Space · Digital art · Generative · 2K & 4K only