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.
The script performs the following steps:
- Detect files in
C:/Users/{username}/AppData/Local/Packages/Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy/LocalState/Assets
. - Filter out irrelevant (smaller than 250 KB) files.
- Copy over these files to
C:/Users/{username}/Pictures/lockscreen_images/{current_date}/
with the.jpg
extension added. - Open
C:/Users/{username}/Pictures/lockscreen_images/{current_date}/
in Windows Explorer.
python extract_lockscreen_images.py
- 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