Show Lightroom preview files infos and extract thumbnails on photos selection
-
Tested with python 3.11, windows 11, Lightroom 6
-
Photos selection using project "Lightroom-SQL-tools" on github. For criteria syntax, see "https://github.com/fdenivac/Lightroom-SQL-tools"
-
Install requirements:
pip install -r requirements.txt
-
show available thumbnails for all photos
lrprev_extract.py --lrcat="C:\catalog.lrcat" --sizes videos=false -
extract thumbnails with width and height > 100 for photos with rating > 1, taken after 2023
lrprev_extract.py --lrcat="C:\catalog.lrcat" --thumb-level=>100 "datecapt=>2024-01-01,rating=>=1,videos=0",
usage: lrprev_extract.py [-h] [-b LRCAT] [-t] [-i] [-s] [-e THUMB_LEVEL] [-d THUMB_DIR] [criteria]
View infos about Lightroom preview files, extract thumbnails
positional arguments:
criteria Criteria of select (for syntax: see project "Lightroom-SQL-tools" on github)
options:
-h, --help show this help message and exit
-b LRCAT, --lrcat LRCAT
Ligthroom catalog file for database request (default:"C:\Users\Default\Documents\My Lightroom Catalog.lrcat"), or INI file (lrtools.ini form)
-t, --sections Show sections levels name
-i, --infos Show sections infos
-s, --sizes Show thumbnails size by level
-e THUMB_LEVEL, --thumb-level THUMB_LEVEL
Thumbnail level to extract (default: no extract) :
- "1" to "9" : level number
- "max : select max level
- ">NUM" : select level where thumbnail width and height > NUM (ex: ">100")
-d THUMB_DIR, --thumb-dir THUMB_DIR
Directory to extract thumbnails