lightroom-preset

1.0.0 • Public • Published

lightroom-preset

A TypeScript API for generating presets for Adobe Lightroom.

Installation

npm install lightroom-preset

Usage example

import {writeFile} from 'node:fs/promises';
import {
  autoColor,
  autoLight,
  defaultColor,
  defaultDetail,
  defaultEffects,
  defaultLight,
  defaultOptics,
  generatePreset,
  mediumContrastToneCurve,
} from 'lightroom-preset';
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},
};
await writeFile(`./example.xmp`, generatePreset(`Example`, settings));

Readme

Keywords

none

Package Sidebar

Install

npm i lightroom-preset

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

142 kB

Total Files

48

Last publish

Collaborators

  • clebert