/firefly-services:lightroom-api-batchfrom firefly-services
Batch image processing with Adobe Lightroom API — preset application, auto-tone, auto-straighten, exposure/highlight/shadow/color adjustments, color grading, and batch normalization across an image set. Use whenever the user wants "Lightroom API", "batch photo processing", "apply preset", "auto-tone images", "color grade", "normalize a photo set", "image.adobe.io", "Camera Raw filter", or needs to apply consistent processing to many images at scale. Encodes the pattern for delivering visually cohesive image sets from mixed-source raw input — the workhorse pipeline for any photo-heavy creative workflow.
Ships in firefly-services. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The production pattern for applying Lightroom-grade adjustments to images at scale. Apply presets, normalize exposure, auto-tone, color grade — across hundreds or thousands of images consistently. Pair with Photoshop API for compositing or with Firefly for generation; Lightroom is the right tool for tonality and color.
Use this skill when:
image.adobe.ioDo NOT use this skill when:
Lightroom API operations split into three families:
| Family | Operations |
|---|---|
| Auto | auto_tone, auto_straighten — Lightroom decides values |
| Adjustments | Set explicit EditOptions values for exposure, highlights, shadows, contrast, vibrance, saturation, and a WhiteBalance preset |
| Preset | Apply a .xmp Lightroom preset file |
A typical batch pipeline combines all three: auto-tone for baseline normalization, then preset for stylistic look, then fine-tune adjustments for specific shots.
Lightroom presets are .xmp files containing the develop settings. They are produced in desktop Lightroom and exported.
curl --silent -X POST 'https://image.adobe.io/lrService/presets' \
-H "Authorization: Bearer $FIREFLY_SERVICES_ACCESS_TOKEN" \
-H "X-API-Key: $FIREFLY_SERVICES_CLIENT_ID" \
-H 'Content-Type: application/json' \
-d '{
"inputs": {
"source": {"href": "'"$SOURCE_IMAGE_URL"'", "storage": "external"},
"presets": [{
"href": "'"$PRESET_XMP_URL"'",
"storage": "external"
}]
},
"outputs": [{
"href": "'"$OUTPUT_URL"'",
"storage": "external",
"type": "image/jpeg",
"quality": 9
}]
}'
Response includes a status URL to poll. Same pattern as Photoshop API. (The overwrite output flag applies only to Adobe-storage outputs — omit it for external pre-signed URLs.)
For "make these look consistent" without a specific preset, auto-tone is the right starting point:
curl --silent -X POST 'https://image.adobe.io/lrService/autoTone' \
-H "Authorization: Bearer $FIREFLY_SERVICES_ACCESS_TOKEN" \
-H "X-API-Key: $FIREFLY_SERVICES_CLIENT_ID" \
-H 'Content-Type: application/json' \
-d '{
"inputs": {"href": "'"$SOURCE_IMAGE_URL"'", "storage": "external"},
"outputs": [{"href": "'"$OUTPUT_URL"'", "storage": "external", "type": "image/jpeg"}]
}'
Auto-tone analyzes the image and applies exposure, highlights, shadows, whites, and blacks. It doesn't touch color/style — preset on top of auto-tone is the standard combination.
For shot-specific tuning:
curl --silent -X POST 'https://image.adobe.io/lrService/edit' \
-H "Authorization: Bearer $FIREFLY_SERVICES_ACCESS_TOKEN" \
-H "X-API-Key: $FIREFLY_SERVICES_CLIENT_ID" \
-H 'Content-Type: application/json' \
-d '{
"inputs": {
"source": {"href": "'"$SOURCE_IMAGE_URL"'", "storage": "external"}
},
"options": {
"Exposure": 0.5,
"Highlights": -30,
"Shadows": 25,
"Whites": 10,
"Blacks": -10,
"Contrast": 10,
"Vibrance": 15,
"Saturation": 5,
"WhiteBalance": "As Shot"
},
"outputs": [{"href": "'"$OUTPUT_URL"'", "storage": "external", "type": "image/jpeg"}]
}'
Edit settings go directly under options (the EditOptions object) — there is no adjustments wrapper. Field names are PascalCase. White balance is set with the WhiteBalance enum, not a Kelvin temperature/tint pair.
EditOptions fields| Field | Range | Effect |
|---|---|---|
Exposure | -5.0 to +5.0 | Overall brightness in EV; ±1 stop is typical |
Contrast | -100 to +100 | Global contrast |
Highlights | -100 to +100 | Brighter areas; negative recovers blown highlights |
Shadows | -100 to +100 | Darker areas; positive opens shadows |
Whites | -100 to +100 | White point |
Blacks | -100 to +100 | Black point |
Vibrance | -100 to +100 | Saturation of less-saturated colors only |
Saturation | -100 to +100 | Saturation of all colors (use sparingly) |
Clarity | -100 to +100 | Midtone contrast |
Dehaze | -100 to +100 | Atmospheric haze removal/addition |
Texture | -100 to +100 | Fine detail emphasis |
VignetteAmount | -100 to +100 | Post-crop vignette |
Sharpness | 0 to 150 | Sharpening amount |
SharpenRadius | 0.5 to 3.0 | Sharpening radius |
SharpenDetail | 0 to 100 | Sharpening detail |
SharpenEdgeMasking | 0 to 10 | Sharpening edge masking |
NoiseReduction | 0 to 100 | Luminance noise reduction |
ColorNoiseReduction | 0 to 100 | Color noise reduction |
WhiteBalance | enum (below) | White balance preset |
WhiteBalance is an enum, not a Kelvin temperature/tint pair. Valid values:
As Shot · Auto · Cloudy · Custom · Daylight · Flash · Fluorescent · Shade · Tungsten
The standard pattern for normalizing a mixed-source set:
async function normalizeAndStyle({ sourceUrl, presetUrl, outputUrl }) {
// Stage 1: auto-tone — write to an intermediate URL
const intermediateUrl = await getSignedPutUrl(
`intermediates/${randomUUID()}.jpg`,
7200,
);
await submitAutoTone({ sourceUrl, outputUrl: intermediateUrl });
await pollUntilSucceeded();
// Stage 2: apply preset to the auto-toned intermediate
const intermediateGetUrl = await getSignedGetUrl(
`intermediates/${...}`,
7200,
);
await submitPreset({
sourceUrl: intermediateGetUrl,
presetUrl,
outputUrl,
});
await pollUntilSucceeded();
}
Two stages, two jobs. The intermediate file is a chunk of work; persist briefly, delete after final output is confirmed.
For a fully composed batch:
For each input image:
1. auto_straighten
2. auto_tone (sets exposure, highlights, shadows, whites, blacks)
3. apply_preset (sets color/style)
4. fine_tune_adjustments (per-image overrides if needed)
5. Write to final destination
This produces a set of images that read as consistently processed. The exact recipe is brand-defined; the orchestration shape is universal.
Lightroom API ingests raw formats directly:
curl --silent -X POST 'https://image.adobe.io/lrService/autoTone' \
-H "Authorization: Bearer $FIREFLY_SERVICES_ACCESS_TOKEN" \
-H "X-API-Key: $FIREFLY_SERVICES_CLIENT_ID" \
-H 'Content-Type: application/json' \
-d '{
"inputs": {"href": "'"$RAW_FILE_URL"'", "storage": "external"},
"outputs": [
{"href": "'"$OUTPUT_JPEG_URL"'", "storage": "external", "type": "image/jpeg", "quality": 10}
]
}'
autoTone accepts multiple outputs in one job — live-verified 2026-08-10: a single submission with both "type": "image/jpeg" and "type": "image/x-adobe-dng" outputs completed with both renditions succeeded. One job, one set of adjustments, delivery JPEG and DNG master together. (Note the input-shape asymmetry across Lightroom endpoints, also live-verified: autoTone takes a flat inputs: {href, storage} object, while presets wraps it as inputs: {source: {...}, presets: [...]}.)
A real-estate photography pipeline: hundreds of raw shots per day from various sites, must look brand-consistent.
SQS queue (one message per shot)
↓
Worker:
1. Get pre-signed read for raw
2. Lightroom: auto_straighten → auto_tone → brand_preset
3. Output as JPEG to delivery bucket
4. Output as DNG to master bucket
5. Write metadata to DynamoDB
Throughput is bounded by Lightroom API quota (typically 10 RPM default). Provisioned higher for production at-scale.
A campaign uses 50 hero shots from a single shoot, but lighting varied throughout the day. To make them read as one campaign:
1. Photographer flags one "reference" shot
2. Reference shot is auto-toned, then human-tuned (or pre-defined preset)
3. Export adjustments from reference as a .xmp preset
4. Apply preset to all 49 other shots via Lightroom API
5. Per-shot fine-tune only on outliers
This produces visual cohesion across a campaign set in minutes rather than hours.
Firefly's reference-image generation works best on clean, well-exposed inputs. Lightroom pre-processing improves Firefly output quality:
Raw shot
↓ Lightroom: auto_tone + auto_straighten
Clean source
↓ Firefly: generate_similar / fill / expand
Skipping the Lightroom step often means Firefly produces output that inherits weird color shifts or exposure issues from the source.
A Lightroom batch pipeline is production-ready when:
quality: 8-10 for distribution, quality: 12 for master).xmp file is broken or has wrong format. Open in desktop Lightroom to validate, re-export.WhiteBalance preset (e.g. Daylight) per-batch instead of relying on As Shot/auto.firefly-services-storage-refs — Input/output URL managementfirefly-services-auth — Token retrievalphotoshop-api-composition — Compose Lightroom-processed images into PSD templatesfirefly-generate-similar — Generate variations from Lightroom-cleaned sourcesfirefly-services-rate-limits — Lightroom has separate quota from Fireflyfirefly-services-bootstrap — Lightroom API subscriptionWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub focus-gts/firefly-services-skills --plugin firefly-services19 skills in this plugin
/firefly-batch-pipelineThe end-to-end production reference architecture for high-volume generative campaign workloads on Adobe Firefly Services — SQS-fronted intake, Lambda worker pool with per-credential token-bucket pacing, Step Functions orchestration for multi-stage PSD composition, DynamoDB job state, S3 result persistence, DLQ replay, and webhook-driven customer notification. Use whenever the user mentions "batch pipeline", "campaign at scale", "thousands of images per day", "generative pipeline", "campaign assembler", "asset factory", "production-grade pipeline", or designs a system that combines Firefly generation with Photoshop composition at volume. Stitches `firefly-services-rate-limits` and `photoshop-api-composition` into a single deployable blueprint./firefly-brand-guardrailsEnforce brand compliance on generative output — custom-model lock-in, prompt and output content filtering, asset tagging for downstream policy, and the human-review queue pattern for regulated or brand-sensitive workloads. Use whenever the user mentions "brand compliance", "brand safety", "regulated industry", "review queue", "approval workflow", "content moderation", "brand guardrails", "legal review", "compliance hold", or generates assets for financial services, pharma, automotive, public sector, or any customer with a brand-review process. Encodes the production guardrail pattern that turns "Firefly generates whatever it wants" into "every asset that ships passes a documented compliance gate."/firefly-cost-optimizationThe production playbook for understanding and controlling Adobe Firefly Services consumption — where API spend actually goes, what to cache, what to batch, seed reuse for deterministic regenerations, prompt deduplication, response caching, custom-model-vs-style-reference cost tradeoff, and the "why is consumption 3× higher than expected" debugging sequence. Use whenever the user mentions "cost", "consumption", "API spend", "budget", "billing surprise", "consumption is high", "credits burning fast", "FinOps", "cost overrun", or wants to understand the cost shape of a generative pipeline before deploying it. Encodes the FinOps pattern that keeps generative pipelines on budget at scale./firefly-custom-modelsTrain, manage, and invoke Adobe Firefly Custom Models — subject vs style models, training data preparation (10-30 reference images), training submission and polling, asset ID management, generation with `customModelId` and `x-model-version: image3_custom`, retraining cadence, and brand-aligned generation at scale. Use whenever the user mentions "custom model", "brand model", "train a model", "fine-tune Firefly", "subject model", "style model", "Custom Models API", `customModelId`, or describes iconography / brand-asset / character generation that requires consistency. Encodes the production pattern for brand iconography workflows where custom-model output dramatically reduces design cycle time./firefly-expand-fillUse Adobe Firefly's Generative Expand and Generative Fill APIs — when to use each, masking strategies, placement and aspect ratio control, prompt patterns for clean extension and inpainting, and the difference between filling versus replacing image regions. Use whenever the user mentions "generative expand", "extend canvas", "generative fill", "inpaint", "outpaint", "remove object", "replace background", "expand image", "fill image", "masking", "expand-async", "fill-async", or wants to grow / patch / modify an existing image. Encodes production patterns for background extension on hero assets and for brand-aligned background replacement in high-volume template-driven campaign asset production./firefly-generate-image-v3-asyncGenerate images with the Adobe Firefly V3 asynchronous API — job submission, status polling, webhook callbacks, prompt structure, content class, style and structure references, seed control, multi-variation results, and the migration from V2 sync to V3 async. Use whenever the user wants to "generate an image with Firefly", "text-to-image", "Firefly V3", "async generate", "polling", "jobId", "statusUrl", or upgrades from V2 sync. Returns the production pattern for the highest-volume Firefly workload — including a polling cadence that avoided rate limiting in live testing and a webhook design pattern for scaling to thousands of concurrent jobs.