https://github.com/clebert/lightroom-preset
A TypeScript API for generating presets for Adobe Lightroom.
https://github.com/clebert/lightroom-preset
Last synced: 12 months ago
JSON representation
A TypeScript API for generating presets for Adobe Lightroom.
- Host: GitHub
- URL: https://github.com/clebert/lightroom-preset
- Owner: clebert
- License: mit
- Created: 2021-08-26T20:58:28.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-07-19T03:55:55.000Z (almost 3 years ago)
- Last Synced: 2025-04-10T19:19:49.393Z (about 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 1.32 MB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lightroom-preset
> A TypeScript API for generating presets for Adobe Lightroom.
## Installation
```
npm install lightroom-preset
```
## Usage example
```js
import {
autoColor,
autoLight,
defaultColor,
defaultDetail,
defaultEffects,
defaultLight,
defaultOptics,
generatePreset,
mediumContrastToneCurve,
} from 'lightroom-preset';
import {writeFile} from 'node:fs/promises';
```
```js
const settings = {
autoTone: true,
profile: `Adobe Color`,
light: {
...defaultLight,
...autoLight,
toneCurve: mediumContrastToneCurve,
},
color: {
...defaultColor,
...autoColor,
colorGrading: {
...defaultColor.colorGrading,
highlights: {...defaultColor.colorGrading.highlights, luminance: -5},
},
},
effects: {...defaultEffects, texture: 30, clarity: 20},
detail: {...defaultDetail},
optics: {
...defaultOptics,
removeChromaticAberration: true,
enableLensCorrections: true,
},
};
```
```js
await writeFile(`./example.xmp`, generatePreset(`Example`, settings));
```