Convert Lightroom Template file .ltemplate into manipulable JSON file
Project description
LRJson
Convert Lightroom Template file (.ltemplate) into manipulable JSON file
Install
You can install LRJson either via pip (PyPI) or from source. To install using pip:
python3 -m pip install lrjson
Or manually:
git clone https://github.com/remiflavien1/lrjson
cd lrjson
python3 setup.py install
CLI
Realy simple CLI :
Take a Lightroom Template (.lrtemplate)
file and convert it into JSON
file :
$ lrson myfilter.lrtemplate
File converted with Success
You can print output with -p|--print
flag :
$ lrson myfilter.lrtemplate -p
{
"id": "A76FFDE6-31E0-4FF6-AD4E-FF6F9EE930E9",
"internalName": "mytemplate",
"title": "myTemplate",
"type": "Develop",
"value": {
"settings": {
"Blacks2012": 40,
"Clarity2012": 18,
"ColorNoiseReduction": 5,
"ColorNoiseReductionDetail": 50,
"ColorNoiseReductionSmoothness": 50,
"Contrast2012": 49,
"HueAdjustmentRed": 9,
"HueAdjustmentYellow": -89,
"LuminanceAdjustmentAqua": -50,
"LuminanceAdjustmentBlue": 34,
"LuminanceAdjustmentGreen": 5,
"LuminanceAdjustmentMagenta": 1,
"LuminanceAdjustmentOrange": -1,
"LuminanceAdjustmentPurple": 40,
"LuminanceAdjustmentRed": 0,
"LuminanceAdjustmentYellow": 37,
"LuminanceNoiseReductionContrast": 0,
"LuminanceNoiseReductionDetail": 50,
"LuminanceSmoothing": 0,
"ParametricDarks": 0,
"ParametricHighlightSplit": 48,
"ParametricHighlights": 0,
"ParametricLights": 0,
"Tint": 33,
"ToneCurveName2012": "Custom",
"ToneCurvePV2012": [
14,
25,
94,
112,
198,
170,
255
],
"ToneCurvePV2012Blue": [
0,
0,
255
],
"ToneCurvePV2012Green": [
0,
0,
255
],
"ToneCurvePV2012Red": [
0,
0,
255
],
"Vibrance": 1,
"WhiteBalance": "Custom",
"Whites2012": 55,
"orientation": "AB"
},
"uuid": "28ACD78F-6C28-4A38-B09E-A62718A4C073"
},
"version": 0
}
API
There is only one function.
Just import it and use it.
>>> from lrjson import convert_lr_to_json as cvj
>>> cvj.convert("myFilter.lrtemplate","output.json")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lrjson-0.0.1.tar.gz
(3.6 kB
view details)
Built Distribution
File details
Details for the file lrjson-0.0.1.tar.gz
.
File metadata
- Download URL: lrjson-0.0.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f15c93b297460ed16de236beb7d848d39dc798ff89aa1b12f99d8c61d9df1384 |
|
MD5 | 1e0162c72e6820e18423c761bb1f6115 |
|
BLAKE2b-256 | cdb49e9dd88b76ed0b62533d3e8a8961efd6c5fa4decd531b9b7306d6c1948fb |
File details
Details for the file lrjson-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: lrjson-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fca8ec5c2d25292f65938b988f772e6c11d203b293c3973fb20e02f7b1c48130 |
|
MD5 | eaa2c27350553271a70a46487bf05b99 |
|
BLAKE2b-256 | 3c6f6232d7ff7204e9904188afb08efd08701b2438aad4e5631815f73f833f22 |