https://github.com/aalpern/luminosity
A go library for accessing Adobe Lightroom catalogs
https://github.com/aalpern/luminosity
adobe-lightroom go lightroom photo photography
Last synced: 9 months ago
JSON representation
A go library for accessing Adobe Lightroom catalogs
- Host: GitHub
- URL: https://github.com/aalpern/luminosity
- Owner: aalpern
- Created: 2015-11-21T19:10:16.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2019-07-04T14:37:20.000Z (over 6 years ago)
- Last Synced: 2025-03-26T14:56:07.277Z (10 months ago)
- Topics: adobe-lightroom, go, lightroom, photo, photography
- Language: Go
- Homepage:
- Size: 121 KB
- Stars: 10
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Luminosity
A library for accessing Adobe Lightroom catalogs.
Here's something you can do with the output -
[Lightroom Catalog Visualization with Go and d3 ](https://monster.partyhat.co/article/lightroom-catalog-visualization/).
Documentation is available on
[godoc.org](https://godoc.org/github.com/aalpern/luminosity).
### Capabilities
* Produce summary statistics on a variety of dimensions - photos shot
by day, by camera and lens, by aperture or exposure, etc...
* Produce hierarchical summaries for rendering Sunburst charts with
the accompanying JavaScript code (see above)
* Extract JPEG previews from the catalog preview cache
* Purge sidecar files with the CLI commands
## Origins
This library began as a very simple script to purge sidecar files from
disk. The bulk of my photography is travel photography, and for my
current setup I usually don't bring a laptop - I travel with an iPad
and a [WD My Passport Wireless
Pro](https://www.wd.com/products/portable-storage/my-passport-wireless-pro.html)
backup device, which is basically a portable wifi NAS with SD card
backup.
The Passport device can serve access to the downloaded photos - it's
slow, but it's sufficient for basic review, and for selecting
highlights to post while travelling, but it doesn't support RAW
files. Therefore, I shoot in RAW+JPG while travelling, and when I
return and back everything up to my
[Synology](https://monster.partyhat.co/article/photo-backup-evolution-2019-edition/)
I purge the sidecar files.
Since every Lightroom catalog is actually a
[Sqlite](https://www.sqlite.org/) database file, running SQL queries
to extract the sidecar paths was trivial - that ensures that I'm not
deleting any images that were shot as JPG only.
Since then, the codebase has evolved significantly thanks to my
interests in [data
visualization](https://monster.partyhat.co/article/lightroom-catalog-visualization/).
## Reference
* [Extract preview for lost images](https://helpx.adobe.com/lightroom-classic/kb/extract-previews-for-lost-images-lightroom.html). A Lua script for Lightroom Classic to extract image previews as jpegs, from Adobe support.
* [Lightroom SDK Downloads](https://console.adobe.io/downloads/lr)
* [Linwood-F/DumpJPGs](https://github.com/Linwood-F/DumpJPGs)
* [Chandler/lightroom_preview_exporter](https://github.com/Chandler/lightroom_preview_exporter)
* [perlmonk/lrpreview2jpg.pl](https://gist.github.com/perlmonk/5ad2535433a9ee7b33d9)
* [arnar/lightroommate](https://github.com/arnar/lightroommate)