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
- Host: GitHub
- URL: https://github.com/adeelh/save-win-lockscreen-images
- Owner: AdeelH
- License: mit
- Created: 2021-09-25T14:23:19.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-10-16T11:54:16.000Z (over 3 years ago)
- Last Synced: 2025-01-30T14:34:47.436Z (about 1 year ago)
- Topics: automation, python, pythonscript, script, wallpaper, windows, windows-10
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`