An open API service indexing awesome lists of open source software.

https://github.com/adeelh/save-win-lockscreen-images

Save Windows lockscreen images for your personal use
https://github.com/adeelh/save-win-lockscreen-images

automation python pythonscript script wallpaper windows windows-10

Last synced: 11 months ago
JSON representation

Save Windows lockscreen images for your personal use

Awesome Lists containing this project

README

          

# Windows lockscreen image extractor

Windows 10 spotlight often turns up some great pictures that you might want to save permanently. For example, to use as a desktop background. This simple Python script automatically extracts these images from the hellish depths of `AppData/Local` and saves them to your `Pictures` folder.
This version only saves the landscape images.

## How it works
The script performs the following steps:
1. Detect files in `C:/Users/{username}/AppData/Local/Packages/Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy/LocalState/Assets`.
2. Filter out irrelevant (smaller than 250 KB) files.
3. Copy over these files to `C:/Users/{username}/Pictures/lockscreen_images/{current_date}/` with the `.jpg` extension added.
4. Open `C:/Users/{username}/Pictures/lockscreen_images/{current_date}/` in Windows Explorer.

## Usage

```sh
python extract_lockscreen_images.py
```

## Notes:
- This version requires PIL in order to read image dimensions. Even better if someone can do it without external dependencies.
- For now you can instal PIL with `pip3 install Pillow`