Public
Like
xmp2reshade
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v13View latest version
This directory contains shared TypeScript code used by both frontend and backend.
types.ts- TypeScript interfaces and typesxmp-parser.ts- XMP parsing and conversion logic
The parser handles Adobe XMP sidecar files and converts them to Lightroom configuration format.
The parser maps common Adobe Camera Raw settings to Lightroom equivalents:
Global Adjustments:
- Exposure, Contrast, Highlights, Shadows, Whites, Blacks
- Temperature, Tint, Vibrance, Saturation
- Texture, Clarity, Dehaze
Color Adjustments (HSL):
- Red, Orange, Yellow, Green, Aqua, Blue, Purple, Magenta
- Hue, Saturation, and Luminance for each color
Vignette Settings:
- Amount, Midpoint, Feather, Roundness, Style
The parser normalizes XMP values to match Lightroom's expected ranges:
- Percentages (0-100) → Decimals (0.0-1.0)
- Temperature values scaled appropriately
- Curve adjustments converted to decimal format
Generates configuration in the format:
LIGHTROOM_PROPERTY_NAME=value
All numeric values are formatted to 6 decimal places for consistency.