Skip to content

AdeelH/save-win-lockscreen-images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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

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