A Rust utility that extracts background images from Windows 10/11 Content Delivery Manager assets and saves them to your Desktop with organized naming.
Windows 10/11 stores wallpaper and background images in a hidden directory. This tool finds those images, copies them to your Desktop in a new folder called processed_backgrounds, and renames them sequentially as image_1.jpg, image_2.jpg, etc.
- 🖼️ Extracts Windows background images from system assets
- 📁 Creates organized folder structure on Desktop
- 🏷️ Sequential naming for easy browsing
- 🔄 Overwrites previous extractions (cleans up old files)
- 📊 Shows progress and file count
- Windows 10 or 11
- Rust toolchain (install from rustup.rs)
git clone https://github.com/Tembocs/extract_images.git
cd extract_images
cargo build --releaseSimply run the executable:
cargo run --releaseOr if you've built the binary:
./target/release/extract_images# Custom output directory
extract_images --output "C:\MyWallpapers"
# Set minimum file size (in KB)
extract_images --min-size-kb 200
# Use custom prefix for files
extract_images --prefix "wallpaper"
# Exclude certain file extensions
extract_images --exclude-extensions "ico,bmp"
# Verbose output
extract_images --verbose
# Dry run (see what would be copied without actually copying)
extract_images --dry-run
# Combine options
extract_images --output "D:\Images" --prefix "bg" --min-size-kb 150 --verbose- Check for existing output folder (default:
Desktop/processed_backgrounds) - Delete it if it exists (to ensure fresh extraction)
- Create a new output folder
- Copy and rename all qualifying images from Windows assets directory
- Display the number of files copied
Images are saved to: %USERPROFILE%\Desktop\processed_backgrounds\
The program extracts images from:
%USERPROFILE%\AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets
clap— Command-line argument parsing (derive macros)dirs— Locate the user's home directoryterm_size— Terminal width detection for decorative output
tempfile— Scratch directories for tests
MIT License - see LICENSE file for details.
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
No images found?
- Ensure you're running Windows 10/11
- Check if Content Delivery Manager is enabled in Windows settings
- Try running as administrator if permission issues occur
Permission errors?
- Run the command prompt/terminal as administrator
- Check that the Desktop is accessible and writable