Pull the largest JPEG out of each Lightroom preview file — Step-by-step guide
When a Lightroom Classic catalog is lost, its Previews.lrdata folder can still hold a rendered JPEG for each photo. PreviewRescue opens each .lrprev file in your browser, takes the largest complete JPEG inside it and gives you a ZIP of those JPEGs, named by preview ID, with an index.csv of width, height and size. Nothing is uploaded.
What the sample produces
The sample is a small Previews.lrdata folder written by a script. Each preview file holds several JPEGs, one of them hidden inside another JPEG, one is cut short, and one has no JPEG at all. The check decodes every JPEG in the output with Pillow, compares its size and SHA-256 with the source rendition, and reads index.csv with Python's csv module. The same files were also tested as a folder selection with previews.db present.
- JPEG files in the ZIP
- 3, named by preview ID
- Largest rendition
- 640 x 480 pixels
- Rows in index.csv
- 3, with width, height and bytes
How to use it
- Find the folder named after your catalog with Previews.lrdata at the end. It sits next to the .lrcat file. Copy it somewhere safe first; this tool only reads files.
- Choose the Previews.lrdata folder with the folder button, or select a ZIP of it. The preview counts the .lrprev files and the JPEGs found in them. Nothing is uploaded.
- Download the ZIP. It holds one JPEG per preview file, named by its preview ID, and an index.csv with the width, height and size of each one.
Supported files
Reads the .lrprev files in a Lightroom Classic Previews.lrdata folder, including its subfolders, or a ZIP of that folder. In each file it takes the largest complete JPEG it finds at the top level, which is usually the largest preview size. It does not decode Lightroom's own preview format and does not read previews.db, so it cannot rebuild edits, and the JPEGs are the exact renditions Lightroom stored: they show the photo as it was last previewed, and their size can be smaller than the original photo. Files with no complete JPEG are listed and skipped. The layout was checked against a generated file with the same embedded-JPEG structure, not against a real Lightroom catalog, and a newer Lightroom version may store previews differently. Up to 2 GB in total, read in browser memory.