The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Relight: lights reach the subject, every light moves by tap on a phone, and visitors keep the composer until the lighting run is checked
Adarshfe24aea3911d
diff --git a/scripts/comfy/library.spec.mjs b/scripts/comfy/library.spec.mjsindex d3c1b4ee..fc72fb1b 100644--- a/scripts/comfy/library.spec.mjs+++ b/scripts/comfy/library.spec.mjs@@ -191,7 +191,7 @@ export const CUSTOM_NODE_REPOS = {// Live edit: Fuobe's own node file (src/lib/comfy-live-nodes.ts), shipped with Fuobe rather than cloned from a repo.'fuobe-live': 'https://github.com/workingprototype/Fuobe',// Relight (qwen-image-21-relight): Viggle's speed-LoRA loader and step schedule, one file in the model repo itself- // (comfyui/viggle_turbo.py), at the revision checked against the installed copy (only a tooltip differs). The address+ // (comfyui/viggle_turbo.py), pinned at a revision. The address// is the file: it is downloaded as custom_nodes/viggle_turbo/__init__.py, never cloned (the repo holds the weights).// Qwen Research License (a Qwen-Image 2.1 derivative). Not on the validation server: the entry lists it with `packs`.viggle_turbo: 'https://huggingface.co/Viggle/Qwen-Image-2.1-viggle-turbo/resolve/009a44a895ef85f7e643c80fdca9543795248867/comfyui/viggle_turbo.py',@@ -229,7 +229,7 @@ export const KNOWN_MODELS = {// name of its own), pinned at the revision whose file was measured.'Qwen-Image-2.1-DMD2-2steps.safetensors': { folder: 'loras', url: 'https://huggingface.co/linoyts/Qwen-Image-2.1-DMD2-2steps/resolve/5bae28369ecea3232405c17a53c04d35d15796b8/pytorch_lora_weights.safetensors' },// Relight: Viggle's 6-step speed LoRA for Qwen-Image 2.1 (v0.2.1, rank 256, alpha 256; the r128 cut for smaller GPUs),- // pinned at the revision whose files were hash-checked on the GPU box (r256 2a0148f5…, r128 bafb91d0…).+ // pinned at a revision (file hashes r256 2a0148f5…, r128 bafb91d0…).'Qwen-Image-2.1-viggle-turbo-v0.2.1-6step-lora-r256.safetensors': { folder: 'loras', url: 'https://huggingface.co/Viggle/Qwen-Image-2.1-viggle-turbo/resolve/009a44a895ef85f7e643c80fdca9543795248867/Qwen-Image-2.1-viggle-turbo-v0.2.1-6step-lora-r256.safetensors' },'Qwen-Image-2.1-viggle-turbo-v0.2.1-6step-lora-r128.safetensors': { folder: 'loras', url: 'https://huggingface.co/Viggle/Qwen-Image-2.1-viggle-turbo/resolve/009a44a895ef85f7e643c80fdca9543795248867/Qwen-Image-2.1-viggle-turbo-v0.2.1-6step-lora-r128.safetensors' },'ltx-2.3-22b-distilled-fp8.safetensors': { folder: 'checkpoints', url: 'https://huggingface.co/Lightricks/LTX-2.3-fp8/resolve/main/ltx-2.3-22b-distilled-fp8.safetensors' },diff --git a/scripts/eval/README.md b/scripts/eval/README.mdindex 0f505fc2..f01eb995 100644--- a/scripts/eval/README.md+++ b/scripts/eval/README.md@@ -127,7 +127,8 @@ One JSON file per Original in `cases/`. Later Original packages add their own fi| `popcorn` | Storyboards in Fuobe Soul's looks (O13) | 4 four-frame boards (through `/api/storyboards`): 3 looks and the same board without one | `original` | clip, continuity, aesthetic || `cinema` | Fuobe Cinema (O6) | 3 Director scenes (the prompt Cinema compiles), 4 camera moves as LTX-2.3's `camera_lora` (cloud), 2 films of 3 shots | `original`, `words` (no camera LoRA), `expansion` (fal's prompt expansion on), `wan` (Wan 2.2 A14B hosted), `partner` (Seedance 2.5); all but `original` cloud only | clip, temporal, continuity || `marketing` | Fuobe Marketing Image, Fuobe Try-On, the AI Influencer sheet and Instadump (O10) | 7: a Standalone product shot (the product-shot graph on your GPU; hosted Qwen-Image-Edit in the cloud), an ad's picture, a poster without a product, a try-on, the builder's sheet (through `/api/influencer`), an Instadump photo from a selfie | `original`, `partner` (cloud: GPT Image 2.5, Nano Banana Pro, Ideogram 3.0, FASHN) | clip, aesthetic, style (the product), identity (try-on, Instadump) |-| `relight` | Relight with placed lights | 12 portraits of your own (`local/relight/<id>.png`: 8 editorial portraits and 4 more) × the four named looks, Neon night with its softness said once, and one white and one teal light at each of the 9 side × height spots | `viggle` (Generate lighting as the tool runs it), `turbo-today` (Qwen-Image 2.1 Turbo, the same words), `light-migration` (Qwen-Image-Edit 2509 Relight) | identity, clip, aesthetic |+| `relight` | Relight's looks | 12 portraits of your own (`local/relight/<id>.png`: 8 editorial portraits and 4 more) × the four named looks, and Golden hour and Studio rim with their softness said once | `viggle` (Generate lighting as the tool runs it), `turbo-today` (Qwen-Image 2.1 Turbo, the same words), `edit-2509-relight` (Qwen-Image-Edit 2509 with its Relight LoRA); run one variant at a time | identity, clip, aesthetic |+| `relight-placement` | Where Relight's placed light lands | the same 12 portraits × one white and one teal light at each of the 9 side × height spots | `viggle` only | identity, clip, aesthetic || `turnaround` | Turnaround video (N7-6) | 4 through `/api/turnaround`: four views, the front and the back (sides drawn by the Angles app), the front alone, a sheet alone (a front drawn from it) | `default` (Frames on your GPU, H3 Max references in the cloud), `keyframes` (cloud: FLUX 3 Max), `camera` (cloud: H3 Max camera controls) | identity of 8 sampled frames against the views, temporal, clip |`soul.json`, `soul-cinema.json`, `soul-hex.json`, `dop.json`, `dop-mix.json` and `dop-mixed-media.json` are **generated** from the research. They come fromdiff --git a/scripts/eval/cases/relight-placement.json b/scripts/eval/cases/relight-placement.jsonnew file mode 100644index 00000000..cf66a0e4--- /dev/null+++ b/scripts/eval/cases/relight-placement.json@@ -0,0 +1,1120 @@+{+ "$schema": "./case.schema.json",+ "suite": "relight-placement",+ "title": "Relight · where a placed light lands",+ "description": "The Relight tool's Generate lighting on the same 12 portraits (local/relight/<id>.png): one white and one teal light at each of the 9 side x height spots, written by src/lib/relight/lights.ts. Light placement is measured from the aligned results with the tool's own maths (src/lib/relight/align.ts); identity, CLIP and aesthetic as in the relight suite. The tool's engine only.",+ "original": "oss-qwen-image-21-relight",+ "kind": "image",+ "decides": "Whether the words alone put the light where it was placed, or the light-guide picture is needed (RELIGHT_SETTINGS.guide).",+ "targets": {+ "open": {+ "models": [+ "oss-qwen-image-21-relight"+ ]+ },+ "demo": {+ "models": [+ "oss-qwen-image-21-relight"+ ]+ }+ },+ "defaults": {+ "seeds": [+ 1001+ ],+ "metrics": [+ "identity",+ "clip",+ "aesthetic"+ ],+ "timeoutSeconds": 1800,+ "candidate": "viggle"+ },+ "variants": {+ "viggle": {+ "description": "Generate lighting as the tool runs it: Viggle 6-step r256, the photo and the words only"+ }+ },+ "cases": [+ {+ "id": "relight/studio",+ "title": "Studio portrait, soft even light",+ "op": "edit",+ "inputs": {+ "images": [+ "local/relight/studio.png"+ ]+ },+ "demoInputs": {+ "images": [+ "fixtures/start-frame.png"+ ]+ },+ "references": "local/relight/studio.png",+ "prompts": [+ {+ "id": "white-left-low",+ "text": "Relight the photo with a strong clean white light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-left-face",+ "text": "Relight the photo with a strong clean white light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-left-high",+ "text": "Relight the photo with a strong clean white light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-low",+ "text": "Relight the photo with a strong clean white light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-face",+ "text": "Relight the photo with a strong clean white light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-high",+ "text": "Relight the photo with a strong clean white light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-low",+ "text": "Relight the photo with a strong clean white light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-face",+ "text": "Relight the photo with a strong clean white light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-high",+ "text": "Relight the photo with a strong clean white light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-low",+ "text": "Relight the photo with a strong teal light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-face",+ "text": "Relight the photo with a strong teal light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-high",+ "text": "Relight the photo with a strong teal light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-low",+ "text": "Relight the photo with a strong teal light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-face",+ "text": "Relight the photo with a strong teal light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-high",+ "text": "Relight the photo with a strong teal light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-low",+ "text": "Relight the photo with a strong teal light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-face",+ "text": "Relight the photo with a strong teal light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-high",+ "text": "Relight the photo with a strong teal light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ }+ ]+ },+ {+ "id": "relight/street-dusk",+ "title": "Street at dusk",+ "op": "edit",+ "inputs": {+ "images": [+ "local/relight/street-dusk.png"+ ]+ },+ "demoInputs": {+ "images": [+ "fixtures/start-frame.png"+ ]+ },+ "references": "local/relight/street-dusk.png",+ "prompts": [+ {+ "id": "white-left-low",+ "text": "Relight the photo with a strong clean white light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-left-face",+ "text": "Relight the photo with a strong clean white light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-left-high",+ "text": "Relight the photo with a strong clean white light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-low",+ "text": "Relight the photo with a strong clean white light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-face",+ "text": "Relight the photo with a strong clean white light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-high",+ "text": "Relight the photo with a strong clean white light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-low",+ "text": "Relight the photo with a strong clean white light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-face",+ "text": "Relight the photo with a strong clean white light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-high",+ "text": "Relight the photo with a strong clean white light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-low",+ "text": "Relight the photo with a strong teal light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-face",+ "text": "Relight the photo with a strong teal light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-high",+ "text": "Relight the photo with a strong teal light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-low",+ "text": "Relight the photo with a strong teal light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-face",+ "text": "Relight the photo with a strong teal light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-high",+ "text": "Relight the photo with a strong teal light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-low",+ "text": "Relight the photo with a strong teal light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-face",+ "text": "Relight the photo with a strong teal light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-high",+ "text": "Relight the photo with a strong teal light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ }+ ]+ },+ {+ "id": "relight/interior",+ "title": "Interior, window light",+ "op": "edit",+ "inputs": {+ "images": [+ "local/relight/interior.png"+ ]+ },+ "demoInputs": {+ "images": [+ "fixtures/start-frame.png"+ ]+ },+ "references": "local/relight/interior.png",+ "prompts": [+ {+ "id": "white-left-low",+ "text": "Relight the photo with a strong clean white light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-left-face",+ "text": "Relight the photo with a strong clean white light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-left-high",+ "text": "Relight the photo with a strong clean white light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-low",+ "text": "Relight the photo with a strong clean white light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-face",+ "text": "Relight the photo with a strong clean white light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-high",+ "text": "Relight the photo with a strong clean white light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-low",+ "text": "Relight the photo with a strong clean white light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-face",+ "text": "Relight the photo with a strong clean white light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-high",+ "text": "Relight the photo with a strong clean white light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-low",+ "text": "Relight the photo with a strong teal light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-face",+ "text": "Relight the photo with a strong teal light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-high",+ "text": "Relight the photo with a strong teal light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-low",+ "text": "Relight the photo with a strong teal light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-face",+ "text": "Relight the photo with a strong teal light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-high",+ "text": "Relight the photo with a strong teal light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-low",+ "text": "Relight the photo with a strong teal light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-face",+ "text": "Relight the photo with a strong teal light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-high",+ "text": "Relight the photo with a strong teal light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ }+ ]+ },+ {+ "id": "relight/beach",+ "title": "Beach, bright overcast",+ "op": "edit",+ "inputs": {+ "images": [+ "local/relight/beach.png"+ ]+ },+ "demoInputs": {+ "images": [+ "fixtures/start-frame.png"+ ]+ },+ "references": "local/relight/beach.png",+ "prompts": [+ {+ "id": "white-left-low",+ "text": "Relight the photo with a strong clean white light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-left-face",+ "text": "Relight the photo with a strong clean white light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-left-high",+ "text": "Relight the photo with a strong clean white light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-low",+ "text": "Relight the photo with a strong clean white light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-face",+ "text": "Relight the photo with a strong clean white light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-high",+ "text": "Relight the photo with a strong clean white light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-low",+ "text": "Relight the photo with a strong clean white light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-face",+ "text": "Relight the photo with a strong clean white light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-high",+ "text": "Relight the photo with a strong clean white light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-low",+ "text": "Relight the photo with a strong teal light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-face",+ "text": "Relight the photo with a strong teal light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-high",+ "text": "Relight the photo with a strong teal light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-low",+ "text": "Relight the photo with a strong teal light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-face",+ "text": "Relight the photo with a strong teal light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-high",+ "text": "Relight the photo with a strong teal light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-low",+ "text": "Relight the photo with a strong teal light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-face",+ "text": "Relight the photo with a strong teal light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-high",+ "text": "Relight the photo with a strong teal light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ }+ ]+ },+ {+ "id": "relight/full-body",+ "title": "Full-body fashion shot",+ "op": "edit",+ "inputs": {+ "images": [+ "local/relight/full-body.png"+ ]+ },+ "demoInputs": {+ "images": [+ "fixtures/start-frame.png"+ ]+ },+ "references": "local/relight/full-body.png",+ "prompts": [+ {+ "id": "white-left-low",+ "text": "Relight the photo with a strong clean white light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-left-face",+ "text": "Relight the photo with a strong clean white light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-left-high",+ "text": "Relight the photo with a strong clean white light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-low",+ "text": "Relight the photo with a strong clean white light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-face",+ "text": "Relight the photo with a strong clean white light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-high",+ "text": "Relight the photo with a strong clean white light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-low",+ "text": "Relight the photo with a strong clean white light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-face",+ "text": "Relight the photo with a strong clean white light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-high",+ "text": "Relight the photo with a strong clean white light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-low",+ "text": "Relight the photo with a strong teal light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-face",+ "text": "Relight the photo with a strong teal light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-high",+ "text": "Relight the photo with a strong teal light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-low",+ "text": "Relight the photo with a strong teal light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-face",+ "text": "Relight the photo with a strong teal light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-high",+ "text": "Relight the photo with a strong teal light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-low",+ "text": "Relight the photo with a strong teal light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-face",+ "text": "Relight the photo with a strong teal light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-high",+ "text": "Relight the photo with a strong teal light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ }+ ]+ },+ {+ "id": "relight/close-up",+ "title": "Beauty close-up",+ "op": "edit",+ "inputs": {+ "images": [+ "local/relight/close-up.png"+ ]+ },+ "demoInputs": {+ "images": [+ "fixtures/start-frame.png"+ ]+ },+ "references": "local/relight/close-up.png",+ "prompts": [+ {+ "id": "white-left-low",+ "text": "Relight the photo with a strong clean white light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-left-face",+ "text": "Relight the photo with a strong clean white light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-left-high",+ "text": "Relight the photo with a strong clean white light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-low",+ "text": "Relight the photo with a strong clean white light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-face",+ "text": "Relight the photo with a strong clean white light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-high",+ "text": "Relight the photo with a strong clean white light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-low",+ "text": "Relight the photo with a strong clean white light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-face",+ "text": "Relight the photo with a strong clean white light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-high",+ "text": "Relight the photo with a strong clean white light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-low",+ "text": "Relight the photo with a strong teal light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-face",+ "text": "Relight the photo with a strong teal light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-high",+ "text": "Relight the photo with a strong teal light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-low",+ "text": "Relight the photo with a strong teal light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-face",+ "text": "Relight the photo with a strong teal light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-high",+ "text": "Relight the photo with a strong teal light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-low",+ "text": "Relight the photo with a strong teal light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-face",+ "text": "Relight the photo with a strong teal light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-high",+ "text": "Relight the photo with a strong teal light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ }+ ]+ },+ {+ "id": "relight/editorial-dark",+ "title": "Editorial portrait, deeper skin tone",+ "op": "edit",+ "inputs": {+ "images": [+ "local/relight/editorial-dark.png"+ ]+ },+ "demoInputs": {+ "images": [+ "fixtures/start-frame.png"+ ]+ },+ "references": "local/relight/editorial-dark.png",+ "prompts": [+ {+ "id": "white-left-low",+ "text": "Relight the photo with a strong clean white light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-left-face",+ "text": "Relight the photo with a strong clean white light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-left-high",+ "text": "Relight the photo with a strong clean white light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-low",+ "text": "Relight the photo with a strong clean white light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-face",+ "text": "Relight the photo with a strong clean white light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-high",+ "text": "Relight the photo with a strong clean white light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-low",+ "text": "Relight the photo with a strong clean white light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-face",+ "text": "Relight the photo with a strong clean white light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-high",+ "text": "Relight the photo with a strong clean white light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-low",+ "text": "Relight the photo with a strong teal light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-face",+ "text": "Relight the photo with a strong teal light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-high",+ "text": "Relight the photo with a strong teal light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-low",+ "text": "Relight the photo with a strong teal light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-face",+ "text": "Relight the photo with a strong teal light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-high",+ "text": "Relight the photo with a strong teal light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-low",+ "text": "Relight the photo with a strong teal light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-face",+ "text": "Relight the photo with a strong teal light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-high",+ "text": "Relight the photo with a strong teal light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ }+ ]+ },+ {+ "id": "relight/editorial-light",+ "title": "Editorial portrait, lighter skin tone",+ "op": "edit",+ "inputs": {+ "images": [+ "local/relight/editorial-light.png"+ ]+ },+ "demoInputs": {+ "images": [+ "fixtures/start-frame.png"+ ]+ },+ "references": "local/relight/editorial-light.png",+ "prompts": [+ {+ "id": "white-left-low",+ "text": "Relight the photo with a strong clean white light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-left-face",+ "text": "Relight the photo with a strong clean white light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-left-high",+ "text": "Relight the photo with a strong clean white light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-low",+ "text": "Relight the photo with a strong clean white light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-face",+ "text": "Relight the photo with a strong clean white light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-high",+ "text": "Relight the photo with a strong clean white light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-low",+ "text": "Relight the photo with a strong clean white light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-face",+ "text": "Relight the photo with a strong clean white light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-high",+ "text": "Relight the photo with a strong clean white light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-low",+ "text": "Relight the photo with a strong teal light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-face",+ "text": "Relight the photo with a strong teal light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-high",+ "text": "Relight the photo with a strong teal light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-low",+ "text": "Relight the photo with a strong teal light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-face",+ "text": "Relight the photo with a strong teal light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-high",+ "text": "Relight the photo with a strong teal light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-low",+ "text": "Relight the photo with a strong teal light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-face",+ "text": "Relight the photo with a strong teal light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-high",+ "text": "Relight the photo with a strong teal light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ }+ ]+ },+ {+ "id": "relight/dancer",+ "title": "Dancer in motion",+ "op": "edit",+ "inputs": {+ "images": [+ "local/relight/dancer.png"+ ]+ },+ "demoInputs": {+ "images": [+ "fixtures/start-frame.png"+ ]+ },+ "references": "local/relight/dancer.png",+ "prompts": [+ {+ "id": "white-left-low",+ "text": "Relight the photo with a strong clean white light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-left-face",+ "text": "Relight the photo with a strong clean white light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-left-high",+ "text": "Relight the photo with a strong clean white light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-low",+ "text": "Relight the photo with a strong clean white light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-face",+ "text": "Relight the photo with a strong clean white light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-high",+ "text": "Relight the photo with a strong clean white light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-low",+ "text": "Relight the photo with a strong clean white light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-face",+ "text": "Relight the photo with a strong clean white light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-high",+ "text": "Relight the photo with a strong clean white light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-low",+ "text": "Relight the photo with a strong teal light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-face",+ "text": "Relight the photo with a strong teal light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-high",+ "text": "Relight the photo with a strong teal light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-low",+ "text": "Relight the photo with a strong teal light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-face",+ "text": "Relight the photo with a strong teal light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-high",+ "text": "Relight the photo with a strong teal light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-low",+ "text": "Relight the photo with a strong teal light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-face",+ "text": "Relight the photo with a strong teal light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-high",+ "text": "Relight the photo with a strong teal light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ }+ ]+ },+ {+ "id": "relight/headwrap",+ "title": "Portrait in a headwrap",+ "op": "edit",+ "inputs": {+ "images": [+ "local/relight/headwrap.png"+ ]+ },+ "demoInputs": {+ "images": [+ "fixtures/start-frame.png"+ ]+ },+ "references": "local/relight/headwrap.png",+ "prompts": [+ {+ "id": "white-left-low",+ "text": "Relight the photo with a strong clean white light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-left-face",+ "text": "Relight the photo with a strong clean white light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-left-high",+ "text": "Relight the photo with a strong clean white light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-low",+ "text": "Relight the photo with a strong clean white light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-face",+ "text": "Relight the photo with a strong clean white light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-high",+ "text": "Relight the photo with a strong clean white light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-low",+ "text": "Relight the photo with a strong clean white light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-face",+ "text": "Relight the photo with a strong clean white light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-high",+ "text": "Relight the photo with a strong clean white light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-low",+ "text": "Relight the photo with a strong teal light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-face",+ "text": "Relight the photo with a strong teal light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-high",+ "text": "Relight the photo with a strong teal light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-low",+ "text": "Relight the photo with a strong teal light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-face",+ "text": "Relight the photo with a strong teal light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-high",+ "text": "Relight the photo with a strong teal light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-low",+ "text": "Relight the photo with a strong teal light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-face",+ "text": "Relight the photo with a strong teal light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-high",+ "text": "Relight the photo with a strong teal light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ }+ ]+ },+ {+ "id": "relight/dark-portrait",+ "title": "Low-key portrait",+ "op": "edit",+ "inputs": {+ "images": [+ "local/relight/dark-portrait.png"+ ]+ },+ "demoInputs": {+ "images": [+ "fixtures/start-frame.png"+ ]+ },+ "references": "local/relight/dark-portrait.png",+ "prompts": [+ {+ "id": "white-left-low",+ "text": "Relight the photo with a strong clean white light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-left-face",+ "text": "Relight the photo with a strong clean white light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-left-high",+ "text": "Relight the photo with a strong clean white light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-low",+ "text": "Relight the photo with a strong clean white light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-face",+ "text": "Relight the photo with a strong clean white light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-high",+ "text": "Relight the photo with a strong clean white light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-low",+ "text": "Relight the photo with a strong clean white light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-face",+ "text": "Relight the photo with a strong clean white light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-high",+ "text": "Relight the photo with a strong clean white light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-low",+ "text": "Relight the photo with a strong teal light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-face",+ "text": "Relight the photo with a strong teal light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-high",+ "text": "Relight the photo with a strong teal light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-low",+ "text": "Relight the photo with a strong teal light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-face",+ "text": "Relight the photo with a strong teal light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-high",+ "text": "Relight the photo with a strong teal light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-low",+ "text": "Relight the photo with a strong teal light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-face",+ "text": "Relight the photo with a strong teal light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-high",+ "text": "Relight the photo with a strong teal light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ }+ ]+ },+ {+ "id": "relight/western",+ "title": "Western costume portrait",+ "op": "edit",+ "inputs": {+ "images": [+ "local/relight/western.png"+ ]+ },+ "demoInputs": {+ "images": [+ "fixtures/start-frame.png"+ ]+ },+ "references": "local/relight/western.png",+ "prompts": [+ {+ "id": "white-left-low",+ "text": "Relight the photo with a strong clean white light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-left-face",+ "text": "Relight the photo with a strong clean white light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-left-high",+ "text": "Relight the photo with a strong clean white light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-low",+ "text": "Relight the photo with a strong clean white light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-face",+ "text": "Relight the photo with a strong clean white light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-front-high",+ "text": "Relight the photo with a strong clean white light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-low",+ "text": "Relight the photo with a strong clean white light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-face",+ "text": "Relight the photo with a strong clean white light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "white-right-high",+ "text": "Relight the photo with a strong clean white light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-low",+ "text": "Relight the photo with a strong teal light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-face",+ "text": "Relight the photo with a strong teal light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-left-high",+ "text": "Relight the photo with a strong teal light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-low",+ "text": "Relight the photo with a strong teal light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-face",+ "text": "Relight the photo with a strong teal light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-front-high",+ "text": "Relight the photo with a strong teal light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-low",+ "text": "Relight the photo with a strong teal light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-face",+ "text": "Relight the photo with a strong teal light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ },+ {+ "id": "teal-right-high",+ "text": "Relight the photo with a strong teal light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ }+ ]+ }+ ]+}diff --git a/scripts/eval/cases/relight.json b/scripts/eval/cases/relight.jsonindex d004798e..ab9b9f97 100644--- a/scripts/eval/cases/relight.json+++ b/scripts/eval/cases/relight.json@@ -1,11 +1,11 @@{"$schema": "./case.schema.json","suite": "relight",- "title": "Relight · placed lights on a portrait",- "description": "The Relight tool's Generate lighting (Qwen-Image 2.1 + Viggle's 6-step speed LoRA, words written from the placed lights by src/lib/relight/lights.ts) on 12 portraits you supply in local/relight/<id>.png: 8 editorial portraits and 4 more. Each case runs the four named looks, Neon night with its softness said once, and one white and one teal light at each of the 9 side x height spots (the 'lands where placed' check). Measures identity against the photo (the acceptance bar is 0.85 on every portrait at 100 %, median 0.90), CLIP and aesthetic. Today's Relight engine (Qwen-Image 2.1 Turbo, 8 steps) and the older Light-Migration path run the same words for comparison. The guide-picture, Pruna 8-step and r128 arms change the graph itself, so they run as graphs of their own and are recorded next to this suite. Light placement, stray colour cast, background edges and the alignment residual are measured from the aligned results with the tool's own maths (src/lib/relight/align.ts, blend.ts).",+ "title": "Relight · looks on a portrait",+ "description": "The Relight tool's Generate lighting (Qwen-Image 2.1 + Viggle's 6-step speed LoRA, words written from the placed lights by src/lib/relight/lights.ts) on 12 portraits you supply in local/relight/<id>.png: 8 editorial portraits and 4 more. Each case runs the four named looks, and Golden hour and Studio rim with their softness said once. Measures identity against the photo (the acceptance bar is 0.85 on every portrait at 100 %, median 0.90), CLIP and aesthetic. Qwen-Image 2.1 Turbo (8 steps) and Qwen-Image-Edit 2509 with its Relight LoRA run the same words for comparison: run one variant at a time (--variants viggle, then turbo-today, then edit-2509-relight) so each engine loads once. Where a light lands is its own suite (relight-placement). The guide-picture, Pruna 8-step and r128 arms change the graph itself, so they run as graphs of their own and are recorded next to this suite. Stray colour cast, background edges and the alignment residual are measured from the aligned results with the tool's own maths (src/lib/relight/align.ts, blend.ts).","original": "oss-qwen-image-21-relight","kind": "image",- "decides": "The default engine variant, whether the light-guide picture is sent, the blend mode and the look tuning (RELIGHT_SETTINGS in src/lib/relight/engine.ts).",+ "decides": "The default engine variant, the softness wording, the blend mode and the look tuning (RELIGHT_SETTINGS in src/lib/relight/engine.ts).","targets": {"open": {"models": [@@ -35,7 +35,7 @@"description": "Generate lighting as the tool runs it: Viggle 6-step r256, the photo and the words only"},"turbo-today": {- "description": "Today's Relight recipe engine: Qwen-Image 2.1 Turbo (8 steps), the same words",+ "description": "Qwen-Image 2.1 Turbo (8 steps), the same words","engines": ["open"],@@ -45,8 +45,8 @@]}},- "light-migration": {- "description": "The older path: Qwen-Image-Edit 2509 + Relight LoRA, the same words",+ "edit-2509-relight": {+ "description": "Qwen-Image-Edit 2509 with its Relight LoRA (the app's composer route), the same words","engines": ["open"],@@ -91,80 +91,12 @@"text": "Relight the photo with a strong warm amber light coming from the front, below, close to the subject. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."},{- "id": "neon-night-shared",- "text": "Relight the photo with a strong vivid neon magenta light coming from the left, at face height, close to the subject; and a strong electric neon blue light coming from the right, at face height, close to the subject. The scene is in darkness, lit only by these lights, with hard, crisp light and sharp, defined shadows. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-left-low",- "text": "Relight the photo with a strong clean white light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-left-face",- "text": "Relight the photo with a strong clean white light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-left-high",- "text": "Relight the photo with a strong clean white light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-low",- "text": "Relight the photo with a strong clean white light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-face",- "text": "Relight the photo with a strong clean white light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-high",- "text": "Relight the photo with a strong clean white light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-low",- "text": "Relight the photo with a strong clean white light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-face",- "text": "Relight the photo with a strong clean white light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-high",- "text": "Relight the photo with a strong clean white light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-low",- "text": "Relight the photo with a strong teal light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-face",- "text": "Relight the photo with a strong teal light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-high",- "text": "Relight the photo with a strong teal light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-front-low",- "text": "Relight the photo with a strong teal light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ "id": "golden-hour-shared",+ "text": "Relight the photo with a strong sunset orange light coming from the left, at face height, far away; and a gentle warm white light coming from the right, at face height, far away. The scene is in darkness, lit only by these lights, with soft, diffused light and gentle shadow falloff. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."},{- "id": "teal-front-face",- "text": "Relight the photo with a strong teal light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-front-high",- "text": "Relight the photo with a strong teal light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-right-low",- "text": "Relight the photo with a strong teal light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-right-face",- "text": "Relight the photo with a strong teal light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-right-high",- "text": "Relight the photo with a strong teal light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ "id": "studio-rim-shared",+ "text": "Relight the photo with a clean white light coming from the left, high above, at a medium distance; a strong cool moonlight blue light behind the subject, rimming the right edge of the silhouette, high above, close to the subject; and a cool moonlight blue light behind the subject, rimming the left edge of the silhouette, high above, close to the subject. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."}]},@@ -201,80 +133,12 @@"text": "Relight the photo with a strong warm amber light coming from the front, below, close to the subject. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."},{- "id": "neon-night-shared",- "text": "Relight the photo with a strong vivid neon magenta light coming from the left, at face height, close to the subject; and a strong electric neon blue light coming from the right, at face height, close to the subject. The scene is in darkness, lit only by these lights, with hard, crisp light and sharp, defined shadows. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-left-low",- "text": "Relight the photo with a strong clean white light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-left-face",- "text": "Relight the photo with a strong clean white light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ "id": "golden-hour-shared",+ "text": "Relight the photo with a strong sunset orange light coming from the left, at face height, far away; and a gentle warm white light coming from the right, at face height, far away. The scene is in darkness, lit only by these lights, with soft, diffused light and gentle shadow falloff. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."},{- "id": "white-left-high",- "text": "Relight the photo with a strong clean white light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-low",- "text": "Relight the photo with a strong clean white light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-face",- "text": "Relight the photo with a strong clean white light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-high",- "text": "Relight the photo with a strong clean white light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-low",- "text": "Relight the photo with a strong clean white light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-face",- "text": "Relight the photo with a strong clean white light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-high",- "text": "Relight the photo with a strong clean white light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-low",- "text": "Relight the photo with a strong teal light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-face",- "text": "Relight the photo with a strong teal light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-high",- "text": "Relight the photo with a strong teal light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-front-low",- "text": "Relight the photo with a strong teal light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-front-face",- "text": "Relight the photo with a strong teal light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-front-high",- "text": "Relight the photo with a strong teal light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-right-low",- "text": "Relight the photo with a strong teal light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-right-face",- "text": "Relight the photo with a strong teal light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-right-high",- "text": "Relight the photo with a strong teal light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ "id": "studio-rim-shared",+ "text": "Relight the photo with a clean white light coming from the left, high above, at a medium distance; a strong cool moonlight blue light behind the subject, rimming the right edge of the silhouette, high above, close to the subject; and a cool moonlight blue light behind the subject, rimming the left edge of the silhouette, high above, close to the subject. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."}]},@@ -311,80 +175,12 @@"text": "Relight the photo with a strong warm amber light coming from the front, below, close to the subject. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."},{- "id": "neon-night-shared",- "text": "Relight the photo with a strong vivid neon magenta light coming from the left, at face height, close to the subject; and a strong electric neon blue light coming from the right, at face height, close to the subject. The scene is in darkness, lit only by these lights, with hard, crisp light and sharp, defined shadows. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-left-low",- "text": "Relight the photo with a strong clean white light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-left-face",- "text": "Relight the photo with a strong clean white light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-left-high",- "text": "Relight the photo with a strong clean white light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-low",- "text": "Relight the photo with a strong clean white light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-face",- "text": "Relight the photo with a strong clean white light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-high",- "text": "Relight the photo with a strong clean white light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-low",- "text": "Relight the photo with a strong clean white light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-face",- "text": "Relight the photo with a strong clean white light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-high",- "text": "Relight the photo with a strong clean white light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-low",- "text": "Relight the photo with a strong teal light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-face",- "text": "Relight the photo with a strong teal light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-high",- "text": "Relight the photo with a strong teal light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-front-low",- "text": "Relight the photo with a strong teal light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-front-face",- "text": "Relight the photo with a strong teal light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-front-high",- "text": "Relight the photo with a strong teal light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-right-low",- "text": "Relight the photo with a strong teal light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-right-face",- "text": "Relight the photo with a strong teal light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ "id": "golden-hour-shared",+ "text": "Relight the photo with a strong sunset orange light coming from the left, at face height, far away; and a gentle warm white light coming from the right, at face height, far away. The scene is in darkness, lit only by these lights, with soft, diffused light and gentle shadow falloff. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."},{- "id": "teal-right-high",- "text": "Relight the photo with a strong teal light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ "id": "studio-rim-shared",+ "text": "Relight the photo with a clean white light coming from the left, high above, at a medium distance; a strong cool moonlight blue light behind the subject, rimming the right edge of the silhouette, high above, close to the subject; and a cool moonlight blue light behind the subject, rimming the left edge of the silhouette, high above, close to the subject. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."}]},@@ -421,80 +217,12 @@"text": "Relight the photo with a strong warm amber light coming from the front, below, close to the subject. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."},{- "id": "neon-night-shared",- "text": "Relight the photo with a strong vivid neon magenta light coming from the left, at face height, close to the subject; and a strong electric neon blue light coming from the right, at face height, close to the subject. The scene is in darkness, lit only by these lights, with hard, crisp light and sharp, defined shadows. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-left-low",- "text": "Relight the photo with a strong clean white light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-left-face",- "text": "Relight the photo with a strong clean white light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-left-high",- "text": "Relight the photo with a strong clean white light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-low",- "text": "Relight the photo with a strong clean white light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-face",- "text": "Relight the photo with a strong clean white light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-high",- "text": "Relight the photo with a strong clean white light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-low",- "text": "Relight the photo with a strong clean white light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-face",- "text": "Relight the photo with a strong clean white light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-high",- "text": "Relight the photo with a strong clean white light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-low",- "text": "Relight the photo with a strong teal light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-face",- "text": "Relight the photo with a strong teal light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-high",- "text": "Relight the photo with a strong teal light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-front-low",- "text": "Relight the photo with a strong teal light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ "id": "golden-hour-shared",+ "text": "Relight the photo with a strong sunset orange light coming from the left, at face height, far away; and a gentle warm white light coming from the right, at face height, far away. The scene is in darkness, lit only by these lights, with soft, diffused light and gentle shadow falloff. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."},{- "id": "teal-front-face",- "text": "Relight the photo with a strong teal light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-front-high",- "text": "Relight the photo with a strong teal light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-right-low",- "text": "Relight the photo with a strong teal light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-right-face",- "text": "Relight the photo with a strong teal light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-right-high",- "text": "Relight the photo with a strong teal light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ "id": "studio-rim-shared",+ "text": "Relight the photo with a clean white light coming from the left, high above, at a medium distance; a strong cool moonlight blue light behind the subject, rimming the right edge of the silhouette, high above, close to the subject; and a cool moonlight blue light behind the subject, rimming the left edge of the silhouette, high above, close to the subject. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."}]},@@ -531,80 +259,12 @@"text": "Relight the photo with a strong warm amber light coming from the front, below, close to the subject. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."},{- "id": "neon-night-shared",- "text": "Relight the photo with a strong vivid neon magenta light coming from the left, at face height, close to the subject; and a strong electric neon blue light coming from the right, at face height, close to the subject. The scene is in darkness, lit only by these lights, with hard, crisp light and sharp, defined shadows. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-left-low",- "text": "Relight the photo with a strong clean white light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-left-face",- "text": "Relight the photo with a strong clean white light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ "id": "golden-hour-shared",+ "text": "Relight the photo with a strong sunset orange light coming from the left, at face height, far away; and a gentle warm white light coming from the right, at face height, far away. The scene is in darkness, lit only by these lights, with soft, diffused light and gentle shadow falloff. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."},{- "id": "white-left-high",- "text": "Relight the photo with a strong clean white light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-low",- "text": "Relight the photo with a strong clean white light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-face",- "text": "Relight the photo with a strong clean white light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-high",- "text": "Relight the photo with a strong clean white light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-low",- "text": "Relight the photo with a strong clean white light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-face",- "text": "Relight the photo with a strong clean white light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-high",- "text": "Relight the photo with a strong clean white light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-low",- "text": "Relight the photo with a strong teal light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-face",- "text": "Relight the photo with a strong teal light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-high",- "text": "Relight the photo with a strong teal light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-front-low",- "text": "Relight the photo with a strong teal light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-front-face",- "text": "Relight the photo with a strong teal light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-front-high",- "text": "Relight the photo with a strong teal light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-right-low",- "text": "Relight the photo with a strong teal light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-right-face",- "text": "Relight the photo with a strong teal light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-right-high",- "text": "Relight the photo with a strong teal light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ "id": "studio-rim-shared",+ "text": "Relight the photo with a clean white light coming from the left, high above, at a medium distance; a strong cool moonlight blue light behind the subject, rimming the right edge of the silhouette, high above, close to the subject; and a cool moonlight blue light behind the subject, rimming the left edge of the silhouette, high above, close to the subject. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."}]},@@ -641,80 +301,12 @@"text": "Relight the photo with a strong warm amber light coming from the front, below, close to the subject. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."},{- "id": "neon-night-shared",- "text": "Relight the photo with a strong vivid neon magenta light coming from the left, at face height, close to the subject; and a strong electric neon blue light coming from the right, at face height, close to the subject. The scene is in darkness, lit only by these lights, with hard, crisp light and sharp, defined shadows. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-left-low",- "text": "Relight the photo with a strong clean white light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-left-face",- "text": "Relight the photo with a strong clean white light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-left-high",- "text": "Relight the photo with a strong clean white light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-low",- "text": "Relight the photo with a strong clean white light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-face",- "text": "Relight the photo with a strong clean white light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-high",- "text": "Relight the photo with a strong clean white light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-low",- "text": "Relight the photo with a strong clean white light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-face",- "text": "Relight the photo with a strong clean white light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-high",- "text": "Relight the photo with a strong clean white light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-low",- "text": "Relight the photo with a strong teal light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-face",- "text": "Relight the photo with a strong teal light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-high",- "text": "Relight the photo with a strong teal light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-front-low",- "text": "Relight the photo with a strong teal light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-front-face",- "text": "Relight the photo with a strong teal light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-front-high",- "text": "Relight the photo with a strong teal light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-right-low",- "text": "Relight the photo with a strong teal light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-right-face",- "text": "Relight the photo with a strong teal light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ "id": "golden-hour-shared",+ "text": "Relight the photo with a strong sunset orange light coming from the left, at face height, far away; and a gentle warm white light coming from the right, at face height, far away. The scene is in darkness, lit only by these lights, with soft, diffused light and gentle shadow falloff. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."},{- "id": "teal-right-high",- "text": "Relight the photo with a strong teal light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ "id": "studio-rim-shared",+ "text": "Relight the photo with a clean white light coming from the left, high above, at a medium distance; a strong cool moonlight blue light behind the subject, rimming the right edge of the silhouette, high above, close to the subject; and a cool moonlight blue light behind the subject, rimming the left edge of the silhouette, high above, close to the subject. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."}]},@@ -751,80 +343,12 @@"text": "Relight the photo with a strong warm amber light coming from the front, below, close to the subject. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."},{- "id": "neon-night-shared",- "text": "Relight the photo with a strong vivid neon magenta light coming from the left, at face height, close to the subject; and a strong electric neon blue light coming from the right, at face height, close to the subject. The scene is in darkness, lit only by these lights, with hard, crisp light and sharp, defined shadows. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-left-low",- "text": "Relight the photo with a strong clean white light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-left-face",- "text": "Relight the photo with a strong clean white light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-left-high",- "text": "Relight the photo with a strong clean white light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-low",- "text": "Relight the photo with a strong clean white light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-face",- "text": "Relight the photo with a strong clean white light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-high",- "text": "Relight the photo with a strong clean white light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-low",- "text": "Relight the photo with a strong clean white light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-face",- "text": "Relight the photo with a strong clean white light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-high",- "text": "Relight the photo with a strong clean white light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-low",- "text": "Relight the photo with a strong teal light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-face",- "text": "Relight the photo with a strong teal light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-high",- "text": "Relight the photo with a strong teal light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-front-low",- "text": "Relight the photo with a strong teal light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ "id": "golden-hour-shared",+ "text": "Relight the photo with a strong sunset orange light coming from the left, at face height, far away; and a gentle warm white light coming from the right, at face height, far away. The scene is in darkness, lit only by these lights, with soft, diffused light and gentle shadow falloff. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."},{- "id": "teal-front-face",- "text": "Relight the photo with a strong teal light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-front-high",- "text": "Relight the photo with a strong teal light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-right-low",- "text": "Relight the photo with a strong teal light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-right-face",- "text": "Relight the photo with a strong teal light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-right-high",- "text": "Relight the photo with a strong teal light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ "id": "studio-rim-shared",+ "text": "Relight the photo with a clean white light coming from the left, high above, at a medium distance; a strong cool moonlight blue light behind the subject, rimming the right edge of the silhouette, high above, close to the subject; and a cool moonlight blue light behind the subject, rimming the left edge of the silhouette, high above, close to the subject. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."}]},@@ -861,80 +385,12 @@"text": "Relight the photo with a strong warm amber light coming from the front, below, close to the subject. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."},{- "id": "neon-night-shared",- "text": "Relight the photo with a strong vivid neon magenta light coming from the left, at face height, close to the subject; and a strong electric neon blue light coming from the right, at face height, close to the subject. The scene is in darkness, lit only by these lights, with hard, crisp light and sharp, defined shadows. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-left-low",- "text": "Relight the photo with a strong clean white light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-left-face",- "text": "Relight the photo with a strong clean white light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ "id": "golden-hour-shared",+ "text": "Relight the photo with a strong sunset orange light coming from the left, at face height, far away; and a gentle warm white light coming from the right, at face height, far away. The scene is in darkness, lit only by these lights, with soft, diffused light and gentle shadow falloff. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."},{- "id": "white-left-high",- "text": "Relight the photo with a strong clean white light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-low",- "text": "Relight the photo with a strong clean white light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-face",- "text": "Relight the photo with a strong clean white light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-high",- "text": "Relight the photo with a strong clean white light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-low",- "text": "Relight the photo with a strong clean white light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-face",- "text": "Relight the photo with a strong clean white light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-high",- "text": "Relight the photo with a strong clean white light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-low",- "text": "Relight the photo with a strong teal light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-face",- "text": "Relight the photo with a strong teal light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-high",- "text": "Relight the photo with a strong teal light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-front-low",- "text": "Relight the photo with a strong teal light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-front-face",- "text": "Relight the photo with a strong teal light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-front-high",- "text": "Relight the photo with a strong teal light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-right-low",- "text": "Relight the photo with a strong teal light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-right-face",- "text": "Relight the photo with a strong teal light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-right-high",- "text": "Relight the photo with a strong teal light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ "id": "studio-rim-shared",+ "text": "Relight the photo with a clean white light coming from the left, high above, at a medium distance; a strong cool moonlight blue light behind the subject, rimming the right edge of the silhouette, high above, close to the subject; and a cool moonlight blue light behind the subject, rimming the left edge of the silhouette, high above, close to the subject. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."}]},@@ -971,80 +427,12 @@"text": "Relight the photo with a strong warm amber light coming from the front, below, close to the subject. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."},{- "id": "neon-night-shared",- "text": "Relight the photo with a strong vivid neon magenta light coming from the left, at face height, close to the subject; and a strong electric neon blue light coming from the right, at face height, close to the subject. The scene is in darkness, lit only by these lights, with hard, crisp light and sharp, defined shadows. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-left-low",- "text": "Relight the photo with a strong clean white light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-left-face",- "text": "Relight the photo with a strong clean white light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-left-high",- "text": "Relight the photo with a strong clean white light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-low",- "text": "Relight the photo with a strong clean white light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-face",- "text": "Relight the photo with a strong clean white light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-high",- "text": "Relight the photo with a strong clean white light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-low",- "text": "Relight the photo with a strong clean white light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-face",- "text": "Relight the photo with a strong clean white light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-high",- "text": "Relight the photo with a strong clean white light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-low",- "text": "Relight the photo with a strong teal light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-face",- "text": "Relight the photo with a strong teal light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-high",- "text": "Relight the photo with a strong teal light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-front-low",- "text": "Relight the photo with a strong teal light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-front-face",- "text": "Relight the photo with a strong teal light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-front-high",- "text": "Relight the photo with a strong teal light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-right-low",- "text": "Relight the photo with a strong teal light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-right-face",- "text": "Relight the photo with a strong teal light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ "id": "golden-hour-shared",+ "text": "Relight the photo with a strong sunset orange light coming from the left, at face height, far away; and a gentle warm white light coming from the right, at face height, far away. The scene is in darkness, lit only by these lights, with soft, diffused light and gentle shadow falloff. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."},{- "id": "teal-right-high",- "text": "Relight the photo with a strong teal light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ "id": "studio-rim-shared",+ "text": "Relight the photo with a clean white light coming from the left, high above, at a medium distance; a strong cool moonlight blue light behind the subject, rimming the right edge of the silhouette, high above, close to the subject; and a cool moonlight blue light behind the subject, rimming the left edge of the silhouette, high above, close to the subject. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."}]},@@ -1081,80 +469,12 @@"text": "Relight the photo with a strong warm amber light coming from the front, below, close to the subject. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."},{- "id": "neon-night-shared",- "text": "Relight the photo with a strong vivid neon magenta light coming from the left, at face height, close to the subject; and a strong electric neon blue light coming from the right, at face height, close to the subject. The scene is in darkness, lit only by these lights, with hard, crisp light and sharp, defined shadows. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-left-low",- "text": "Relight the photo with a strong clean white light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-left-face",- "text": "Relight the photo with a strong clean white light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-left-high",- "text": "Relight the photo with a strong clean white light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-low",- "text": "Relight the photo with a strong clean white light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-face",- "text": "Relight the photo with a strong clean white light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-high",- "text": "Relight the photo with a strong clean white light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-low",- "text": "Relight the photo with a strong clean white light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-face",- "text": "Relight the photo with a strong clean white light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-high",- "text": "Relight the photo with a strong clean white light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-low",- "text": "Relight the photo with a strong teal light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-face",- "text": "Relight the photo with a strong teal light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-high",- "text": "Relight the photo with a strong teal light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-front-low",- "text": "Relight the photo with a strong teal light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ "id": "golden-hour-shared",+ "text": "Relight the photo with a strong sunset orange light coming from the left, at face height, far away; and a gentle warm white light coming from the right, at face height, far away. The scene is in darkness, lit only by these lights, with soft, diffused light and gentle shadow falloff. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."},{- "id": "teal-front-face",- "text": "Relight the photo with a strong teal light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-front-high",- "text": "Relight the photo with a strong teal light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-right-low",- "text": "Relight the photo with a strong teal light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-right-face",- "text": "Relight the photo with a strong teal light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-right-high",- "text": "Relight the photo with a strong teal light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ "id": "studio-rim-shared",+ "text": "Relight the photo with a clean white light coming from the left, high above, at a medium distance; a strong cool moonlight blue light behind the subject, rimming the right edge of the silhouette, high above, close to the subject; and a cool moonlight blue light behind the subject, rimming the left edge of the silhouette, high above, close to the subject. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."}]},@@ -1191,80 +511,12 @@"text": "Relight the photo with a strong warm amber light coming from the front, below, close to the subject. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."},{- "id": "neon-night-shared",- "text": "Relight the photo with a strong vivid neon magenta light coming from the left, at face height, close to the subject; and a strong electric neon blue light coming from the right, at face height, close to the subject. The scene is in darkness, lit only by these lights, with hard, crisp light and sharp, defined shadows. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-left-low",- "text": "Relight the photo with a strong clean white light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-left-face",- "text": "Relight the photo with a strong clean white light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ "id": "golden-hour-shared",+ "text": "Relight the photo with a strong sunset orange light coming from the left, at face height, far away; and a gentle warm white light coming from the right, at face height, far away. The scene is in darkness, lit only by these lights, with soft, diffused light and gentle shadow falloff. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."},{- "id": "white-left-high",- "text": "Relight the photo with a strong clean white light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-low",- "text": "Relight the photo with a strong clean white light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-face",- "text": "Relight the photo with a strong clean white light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-high",- "text": "Relight the photo with a strong clean white light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-low",- "text": "Relight the photo with a strong clean white light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-face",- "text": "Relight the photo with a strong clean white light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-high",- "text": "Relight the photo with a strong clean white light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-low",- "text": "Relight the photo with a strong teal light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-face",- "text": "Relight the photo with a strong teal light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-high",- "text": "Relight the photo with a strong teal light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-front-low",- "text": "Relight the photo with a strong teal light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-front-face",- "text": "Relight the photo with a strong teal light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-front-high",- "text": "Relight the photo with a strong teal light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-right-low",- "text": "Relight the photo with a strong teal light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-right-face",- "text": "Relight the photo with a strong teal light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-right-high",- "text": "Relight the photo with a strong teal light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ "id": "studio-rim-shared",+ "text": "Relight the photo with a clean white light coming from the left, high above, at a medium distance; a strong cool moonlight blue light behind the subject, rimming the right edge of the silhouette, high above, close to the subject; and a cool moonlight blue light behind the subject, rimming the left edge of the silhouette, high above, close to the subject. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."}]},@@ -1301,80 +553,12 @@"text": "Relight the photo with a strong warm amber light coming from the front, below, close to the subject. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."},{- "id": "neon-night-shared",- "text": "Relight the photo with a strong vivid neon magenta light coming from the left, at face height, close to the subject; and a strong electric neon blue light coming from the right, at face height, close to the subject. The scene is in darkness, lit only by these lights, with hard, crisp light and sharp, defined shadows. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-left-low",- "text": "Relight the photo with a strong clean white light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-left-face",- "text": "Relight the photo with a strong clean white light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-left-high",- "text": "Relight the photo with a strong clean white light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-low",- "text": "Relight the photo with a strong clean white light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-face",- "text": "Relight the photo with a strong clean white light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-front-high",- "text": "Relight the photo with a strong clean white light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-low",- "text": "Relight the photo with a strong clean white light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-face",- "text": "Relight the photo with a strong clean white light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "white-right-high",- "text": "Relight the photo with a strong clean white light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-low",- "text": "Relight the photo with a strong teal light coming from the left, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-face",- "text": "Relight the photo with a strong teal light coming from the left, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-left-high",- "text": "Relight the photo with a strong teal light coming from the left, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-front-low",- "text": "Relight the photo with a strong teal light coming from the front, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-front-face",- "text": "Relight the photo with a strong teal light coming from the front, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-front-high",- "text": "Relight the photo with a strong teal light coming from the front, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-right-low",- "text": "Relight the photo with a strong teal light coming from the right, below, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."- },- {- "id": "teal-right-face",- "text": "Relight the photo with a strong teal light coming from the right, at face height, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ "id": "golden-hour-shared",+ "text": "Relight the photo with a strong sunset orange light coming from the left, at face height, far away; and a gentle warm white light coming from the right, at face height, far away. The scene is in darkness, lit only by these lights, with soft, diffused light and gentle shadow falloff. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."},{- "id": "teal-right-high",- "text": "Relight the photo with a strong teal light coming from the right, high above, at a medium distance. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."+ "id": "studio-rim-shared",+ "text": "Relight the photo with a clean white light coming from the left, high above, at a medium distance; a strong cool moonlight blue light behind the subject, rimming the right edge of the silhouette, high above, close to the subject; and a cool moonlight blue light behind the subject, rimming the left edge of the silhouette, high above, close to the subject. The scene is in darkness, lit only by these lights, with soft light and smooth shadow edges. Keep the person's identity, face, expression, pose, hair, clothing and the background exactly the same; only the lighting and the colour of the light falling on the scene change."}]}diff --git a/src/app/(studio)/apps/[id]/page.tsx b/src/app/(studio)/apps/[id]/page.tsxindex 888206d0..397df18e 100644--- a/src/app/(studio)/apps/[id]/page.tsx+++ b/src/app/(studio)/apps/[id]/page.tsx@@ -3,10 +3,11 @@ import { notFound } from "next/navigation";import { Suspense } from "react";import { Studio } from "@/components/studio/studio";import { CleanVoiceTool } from "@/components/audio-tools/clean-voice-tool";-import { RelightTool } from "@/components/relight/relight-tool";+import { RelightGate } from "@/components/relight/relight-gate";import { APPS, getModel, getPreset } from "@/lib/catalog";import { withRecipe } from "@/lib/catalog/preset-recipes";import { appStudio } from "@/lib/studios";+import { relightToolLive } from "@/server/relight";export function generateStaticParams() {return APPS.map((a) => ({ id: a.id }));@@ -24,10 +25,17 @@ async function AppStudio({ params }: { params: PageProps<"/apps/[id]">["params"]if (!preset || preset.type !== "app") notFound();// An app that is a tool of its own (Clean up voice): the same tool as its Audio mode, under the app's name.if (preset.tool === "clean-voice") return <CleanVoiceTool app={{ name: preset.name, description: preset.description }} />;- // Relight: tap the photo to place lights, a live preview, then Generate lighting and an instant Intensity blend.- if (preset.tool === "relight") return <RelightTool app={{ name: preset.name, description: preset.description }} />;// The app opens on the model its preview was made with, its own route one pick away.- return <Studio config={withRecipe(appStudio(preset), (m) => !!getModel(m))} />;+ const studio = <Studio config={withRecipe(appStudio(preset), (m) => !!getModel(m))} />;+ // Relight: tap the photo to place lights, a live preview, then Generate lighting and an instant Intensity blend. The+ // composer stays for visitors until the tool's workflow has passed its check on a GPU.+ if (preset.tool === "relight")+ return (+ <RelightGate live={relightToolLive()} app={{ name: preset.name, description: preset.description }}>+ {studio}+ </RelightGate>+ );+ return studio;}export default function Page({ params }: PageProps<"/apps/[id]">) {diff --git a/src/app/api/generations/local/route.ts b/src/app/api/generations/local/route.tsindex 909b52a6..0de5f7ef 100644--- a/src/app/api/generations/local/route.ts+++ b/src/app/api/generations/local/route.ts@@ -6,6 +6,7 @@ const Body = z.object({modelId: z.string().min(1),op: z.enum(["grade", "relight"]),prompt: z.string().max(2000),+ title: z.string().max(200).optional(),inputs: z.object({ images: z.array(z.string()).max(1).optional(), video: z.string().optional() }),params: z.object({ extra: z.record(z.string(), z.unknown()).optional() }).optional(),output: z.object({ url: z.string().startsWith("/api/files/").max(500), kind: z.enum(["image", "video"]), contentType: z.string().optional() }),diff --git a/src/app/api/generations/route.ts b/src/app/api/generations/route.tsindex 9cb81aad..9ffa90ce 100644--- a/src/app/api/generations/route.ts+++ b/src/app/api/generations/route.ts@@ -8,6 +8,7 @@ import { computerScope, ISOLATED_ON_COMPUTER, workerFor } from "@/server/provideimport { getSetting } from "@/server/settings";import { RUNS_ON_COMPUTER_NOTE } from "@/lib/relay";import { OPERATION_LABELS } from "@/lib/catalog/types";+import { relightRunTitle } from "@/lib/relight/engine";import { ACCOUNT_LIMITS, ACCOUNT_MESSAGES, accountTotalBytes, accountUsage, diskHasRoom, filesFullMessage } from "@/server/account-files";import { accountInputProblem } from "@/server/account-inputs";import { db } from "@/server/db";@@ -83,7 +84,10 @@ export async function POST(request: Request) {}// A retired model id (an older script, a saved CLI or MCP call) runs on the model that replaced it, and the notes say// so: previewGeneration and createGenerations move it (generations.ts currentRequest, replaced.ts).- const asked = parsed.data as Parameters<typeof createGenerations>[0];+ const sent = parsed.data as Parameters<typeof createGenerations>[0];+ // Generate lighting is named by its look or its lights (src/lib/relight/engine.ts), not by its long prompt.+ const relightTitle = relightRunTitle(sent);+ const asked = relightTitle ? { ...sent, title: relightTitle } : sent;// Public sign-up: an account runs on its own ComfyUI or its own fal.ai or Replicate key, never the install's providers.// Without a key of its own it stays on the open engine; with one, the engine it asked for.let req = account ? { ...asked, account: account.id, engine: accountEngineMode(account.id) === "open" ? ("open" as const) : asked.engine } : { ...asked, account: undefined };diff --git a/src/components/relight/relight-gate.tsx b/src/components/relight/relight-gate.tsxnew file mode 100644index 00000000..68cbf518--- /dev/null+++ b/src/components/relight/relight-gate.tsx@@ -0,0 +1,14 @@+"use client";++import type { ReactNode } from "react";+import { useIsOwner } from "@/lib/api";+import { RelightTool } from "./relight-tool";++/**+ * The Relight app's page: its own tool once that tool's Generate lighting is checked on a GPU (`live`), and for the+ * studio's owner before then; everyone else gets the app's composer (`children`) until it is.+ */+export function RelightGate({ live, app, children }: { live: boolean; app: { name: string; description: string }; children: ReactNode }) {+ const owner = useIsOwner();+ return live || owner ? <RelightTool app={app} /> : <>{children}</>;+}diff --git a/src/components/relight/relight-panel.tsx b/src/components/relight/relight-panel.tsxindex 7d6f712e..d20121ee 100644--- a/src/components/relight/relight-panel.tsx+++ b/src/components/relight/relight-panel.tsx@@ -1,6 +1,6 @@"use client";-import { Check, Plus, Trash2 } from "lucide-react";+import { Plus, Trash2 } from "lucide-react";import { useId } from "react";import { Button } from "@/components/ui/button";import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";@@ -18,12 +18,16 @@ import {HEIGHTS,LOOKS,MAX_LIGHTS,+ SIDE_LABELS,+ SIDES,+ sideOf,SOFTNESS_LABELS,SOFTNESSES,STRENGTH_LABELS,STRENGTHS,strengthFromValue,strengthValueOf,+ xForSide,yForHeight,type Light,type LookId,@@ -152,12 +156,12 @@ export function LightPanel({type="button"className={cn("inline-flex h-11 items-center gap-1.5 rounded-full border px-3.5 text-[13px] font-medium outline-none focus-visible:ring-2 focus-visible:ring-ring sm:h-9",- chipOf(l.color) ? "border-border" : "border-foreground bg-foreground text-background",+ chipOf(l.color) ? "border-border" : "border-foreground",)}>+ {/* A colour off the chips (a look's own, or picked here) shows as this chip's swatch. */}<span aria-hidden className="size-3.5 rounded-full border border-black/15" style={{ background: chipOf(l.color) ? "conic-gradient(red, yellow, lime, cyan, blue, magenta, red)" : l.color }} />Custom- {!chipOf(l.color) && <Check className="size-3.5" />}</button></PopoverTrigger><PopoverContent className="w-[min(92vw,280px)] p-3" collisionPadding={12}>@@ -166,6 +170,9 @@ export function LightPanel({</Popover></div></Field>+ <Field label="Side">+ <Chips label="Side" value={sideOf(l.x)} options={SIDES.map((s) => ({ value: s, label: SIDE_LABELS[s] }))} onChange={(s) => onChange({ ...l, x: xForSide(l.x, s) })} />+ </Field><Field label="Height"><Chips label="Height" value={l.height} options={HEIGHTS.map((h) => ({ value: h, label: HEIGHT_LABELS[h] }))} onChange={(h) => onChange({ ...l, height: h, y: yForHeight(l.y, h) })} /></Field>diff --git a/src/components/relight/relight-renderer.ts b/src/components/relight/relight-renderer.tsindex 52cc9bb7..e93fbfef 100644--- a/src/components/relight/relight-renderer.ts+++ b/src/components/relight/relight-renderer.ts@@ -1,6 +1,6 @@"use client";-import { FRAGMENT, uniforms, VERTEX, type StageState } from "@/lib/relight/shader";+import { FRAGMENT, LOW_SHORT, uniforms, VERTEX, type StageState } from "@/lib/relight/shader";export type Pic = HTMLImageElement | HTMLCanvasElement | ImageBitmap;@@ -22,8 +22,36 @@ export function picSize(p: Pic): [number, number] {return sizeOf(p);}-const UNITS = { uPhoto: 0, uDepth: 1, uMatte: 2, uRelit: 3 } as const;+/**+ * A low-passed copy with LOW_SHORT pixels on its short side: halved (each halving averages 2 × 2 pixels) while the+ * short side is at least twice that, then scaled the rest of the way. Its size follows the picture's shape only, so+ * the preview and a full-size export blur alike.+ */+export function lowPass(p: Pic, short = LOW_SHORT): Pic {+ let [w, h] = sizeOf(p);+ let src: Pic = p;+ const step = (nw: number, nh: number) => {+ const c = document.createElement("canvas");+ c.width = Math.max(1, nw);+ c.height = Math.max(1, nh);+ const ctx = c.getContext("2d")!;+ ctx.imageSmoothingEnabled = true;+ ctx.imageSmoothingQuality = "low";+ ctx.drawImage(src, 0, 0, c.width, c.height);+ src = c;+ [w, h] = [c.width, c.height];+ };+ while (Math.min(w, h) >= short * 2) step(Math.round(w / 2), Math.round(h / 2));+ const s = short / Math.min(w, h);+ if (s < 1) step(Math.round(w * s), Math.round(h * s));+ return src;+}++const UNITS = { uPhoto: 0, uDepth: 1, uMatte: 2, uRelit: 3, uPhotoLo: 4, uRelitLo: 5 } as const;type Unit = keyof typeof UNITS;+/** The pictures a caller sets; the photo and the relit picture each bring their low-passed copy. */+type Input = "uPhoto" | "uDepth" | "uMatte" | "uRelit";+const LOW: Partial<Record<Input, Unit>> = { uPhoto: "uPhotoLo", uRelit: "uRelitLo" };/*** One WebGL context that draws the Relight stage (src/lib/relight/shader.ts): the photo, its scene read, the relit@@ -83,19 +111,33 @@ export class RelightRenderer {return this.gl.getParameter(this.gl.MAX_TEXTURE_SIZE) as number;}+ /** The largest side this context can draw into and read back: its texture, render buffer and viewport limits. */+ get maxDraw(): number {+ const gl = this.gl;+ const view = gl.getParameter(gl.MAX_VIEWPORT_DIMS) as ArrayLike<number> | null;+ const buffer = (gl.getParameter(gl.MAX_RENDERBUFFER_SIZE) as number) || this.maxSize;+ return Math.min(this.maxSize, buffer, view?.[0] ?? this.maxSize, view?.[1] ?? this.maxSize);+ }+private u(name: string) {if (!this.loc.has(name)) this.loc.set(name, this.gl.getUniformLocation(this.prog, name));return this.loc.get(name)!;}- set(unit: Unit, p: Pic | null) {+ set(unit: Input, p: Pic | null) {+ this.upload(unit, p);+ const low = LOW[unit];+ if (low) this.upload(low, p && lowPass(p));+ if (unit === "uPhoto" && p) this.size = sizeOf(p);+ if (unit === "uDepth") this.depthSize = p ? sizeOf(p) : [1, 1];+ }++ private upload(unit: Unit, p: Pic | null) {const gl = this.gl;gl.activeTexture(gl.TEXTURE0 + UNITS[unit]);gl.bindTexture(gl.TEXTURE_2D, this.tex[unit]);if (p) gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGB, gl.RGB, gl.UNSIGNED_BYTE, p);else gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGB, 1, 1, 0, gl.RGB, gl.UNSIGNED_BYTE, new Uint8Array(3));- if (unit === "uPhoto" && p) this.size = sizeOf(p);- if (unit === "uDepth") this.depthSize = p ? sizeOf(p) : [1, 1];}/** Draw at `width` × `height` (the canvas takes that size). */@@ -112,6 +154,7 @@ export class RelightRenderer {for (const [k, v] of Object.entries(u.vec2)) gl.uniform2f(this.u(k), v[0], v[1]);for (const [k, v] of Object.entries(u.vec4)) gl.uniform4f(this.u(k), v[0], v[1], v[2], v[3]);gl.uniform3fv(this.u("uPos[0]") ?? this.u("uPos"), u.arrays.uPos);+ gl.uniform2fv(this.u("uMark[0]") ?? this.u("uMark"), u.arrays.uMark);gl.uniform3fv(this.u("uColor[0]") ?? this.u("uColor"), u.arrays.uColor);gl.uniform4fv(this.u("uParams[0]") ?? this.u("uParams"), u.arrays.uParams);gl.drawArrays(gl.TRIANGLE_STRIP, 0, 4);diff --git a/src/components/relight/relight-stage.tsx b/src/components/relight/relight-stage.tsxindex 05dd939b..172c95d4 100644--- a/src/components/relight/relight-stage.tsx+++ b/src/components/relight/relight-stage.tsx@@ -3,7 +3,7 @@import { useEffect, useRef, useState } from "react";import { MAX_LIGHTS, type Light } from "@/lib/relight/lights";import type { BlendMode } from "@/lib/relight/engine";-import type { AlignFit } from "@/lib/relight/shader";+import type { AlignFit, Subject } from "@/lib/relight/shader";import { cn } from "@/lib/utils";import { fit, picSize, RelightRenderer, type Pic } from "./relight-renderer";@@ -11,6 +11,8 @@ export interface StageScene {depth: Pic;matte: Pic;subjectDepth: number;+ /** Where the cut-out says the subject is (null: too small to say). */+ subject: Subject | null;}export interface StageProps {@@ -53,7 +55,7 @@ function previewMax(): number {/*** The photo with its lights: the WebGL preview (or the blended result), a marker per light, tap to place or select,- * press and hold to see the original. Drag and the keyboard are desktop extras.+ * press and hold to see the original. Dragging a light and the keyboard are extras: the chips and taps do it all.*/export function RelightStage(p: StageProps) {const canvas = useRef<HTMLCanvasElement>(null);@@ -63,7 +65,7 @@ export function RelightStage(p: StageProps) {const [original, setOriginal] = useState(false);const [cssSize, setCssSize] = useState<[number, number]>([0, 0]);const press = useRef<{ x: number; y: number; timer: number; held: boolean; moved: boolean } | null>(null);- const drag = useRef<{ id: string; pointer: number; moved: boolean; wasSelected: boolean } | null>(null);+ const drag = useRef<{ id: string; pointer: number; x: number; y: number; moved: boolean; wasSelected: boolean } | null>(null);const latest = useRef(p);useEffect(() => {latest.current = p;@@ -134,7 +136,7 @@ export function RelightStage(p: StageProps) {lights: p.lights,intensity: p.intensity,aspect,- scene: { hasScene: !!p.scene, subjectDepth: p.scene?.subjectDepth ?? 0.5 },+ scene: { hasScene: !!p.scene, subjectDepth: p.scene?.subjectDepth ?? 0.5, subject: p.scene?.subject ?? undefined },mode: p.relit ? "result" : "preview",blend: p.blend,glow: p.glow,@@ -171,6 +173,8 @@ export function RelightStage(p: StageProps) {const onPointerMove = (e: React.PointerEvent<HTMLDivElement>) => {const d = drag.current;if (d && d.pointer === e.pointerId) {+ // A finger wobbles: a light moves once the press travels a few pixels, so a tap still selects it.+ if (!d.moved && Math.hypot(e.clientX - d.x, e.clientY - d.y) <= MOVE_PX) return;d.moved = true;const s = spot(e.clientX, e.clientY);latest.current.onMove(d.id, s.x, s.y);@@ -203,13 +207,9 @@ export function RelightStage(p: StageProps) {e.stopPropagation();const wasSelected = p.selected === l.id;p.onSelect(l.id);- // Drag is for a mouse or a pen; on touch a light is moved by tapping where it goes or with its chips.- if (e.pointerType !== "touch") {- box.current?.setPointerCapture(e.pointerId);- drag.current = { id: l.id, pointer: e.pointerId, moved: false, wasSelected };- } else if (wasSelected) {- p.onOpenLight(l.id);- }+ // A light can be dragged with a finger too; the side and height chips and a tap where it goes move it as well.+ box.current?.setPointerCapture(e.pointerId);+ drag.current = { id: l.id, pointer: e.pointerId, x: e.clientX, y: e.clientY, moved: false, wasSelected };};const onKeyDown = (e: React.KeyboardEvent<HTMLDivElement>) => {@@ -286,7 +286,7 @@ export function RelightStage(p: StageProps) {// Keyboard activation (pointer taps are handled on pointer down).if (e.detail === 0) p.onSelect(l.id);}}- className="absolute grid size-11 -translate-x-1/2 -translate-y-1/2 cursor-grab place-items-center rounded-full outline-none focus-visible:ring-2 focus-visible:ring-ring active:cursor-grabbing"+ className="absolute grid size-11 -translate-x-1/2 -translate-y-1/2 cursor-grab touch-none place-items-center rounded-full outline-none focus-visible:ring-2 focus-visible:ring-ring active:cursor-grabbing"style={{ left: `${l.x * 100}%`, top: `${(1 - l.y) * 100}%` }}><spandiff --git a/src/components/relight/relight-tool.tsx b/src/components/relight/relight-tool.tsxindex 5f549cf3..2c7f241b 100644--- a/src/components/relight/relight-tool.tsx+++ b/src/components/relight/relight-tool.tsx@@ -16,7 +16,8 @@ import { Slider } from "@/components/ui/slider";import { Switch } from "@/components/ui/switch";import { Textarea } from "@/components/ui/textarea";import { askToSignUp, uploadFile, useCreateGeneration, useGenerations, useHydrated, useIsAccount, useIsGuest, useIsOwner, useStatus } from "@/lib/api";-import type { Generation } from "@/lib/catalog/types";+import { getPreset } from "@/lib/catalog";+import type { Generation, GenerationRequest } from "@/lib/catalog/types";import { DEFAULT_DEMO, type RelightDemo } from "@/lib/relight/demo";import {INTENSITY_CHIPS,@@ -24,9 +25,11 @@ import {RELIGHT_BLEND_MODEL,RELIGHT_MAX_SIDE,RELIGHT_MODEL,+ RELIGHT_PRESET,RELIGHT_SCENE_FEATURE,RELIGHT_SETTINGS,relightRequest,+ relightTitle,sceneRequest,type BlendMode,} from "@/lib/relight/engine";@@ -48,7 +51,7 @@ import {type LookId,} from "@/lib/relight/lights";import type { AlignFit } from "@/lib/relight/shader";-import { subjectDepthOf } from "@/lib/relight/shader";+import { subjectDepthOf, subjectOf } from "@/lib/relight/shader";import { responseError, toastError } from "@/lib/refusals";import { alignPictures } from "./align-client";import { Chips, LightPanel, LooksRow } from "./relight-panel";@@ -62,13 +65,13 @@ import { RelightStage, type StageScene } from "./relight-stage";*/export const HERO = "Light your photo like a set.";-export const SUB = "Tap to place a light, pick its colour and feel, then generate the real thing. Blend it in as softly or boldly as you like.";+export const SUB = "Place a light, pick its colour and feel, then generate the real thing. Blend it in as softly or boldly as you like.";const GUEST_LINE = "Create a free account to light your own photos.";const NO_GPU_LINE = "Connect your GPU to generate the lighting.";const HINT_KEY = "fuobe:relight-intensity-hint";interface Photo {- /** What results are cached by (and the seed comes from). */+ /** What results are matched by (and the first seed comes from). */key: string;/** What the stage shows. */url: string;@@ -85,16 +88,18 @@ interface Result {pic?: Pic;fit?: AlignFit | null;genId?: string;- /** Kept to the Library already (its file). */- kept?: string;+ /** Kept already: its file, and the Intensity and blend it was kept at (another blend is a new keep). */+ kept?: { url: string; at: string };tiles?: number;}const demoPhoto = (d: RelightDemo): Photo => ({ key: d.photo, url: d.photo, serverUrl: null, demo: d, name: d.alt });/** The key a demo's shipped result is cached under: its photo and the look it was made with. */const demoKey = (d: RelightDemo) =>- `${d.photo}#${resultKey({ prompt: promptFor(lightsOfLook(getLook(d.look)!), null, RELIGHT_SETTINGS.softness), variant: RELIGHT_SETTINGS.variant, seed: seedFor(d.photo), guide: RELIGHT_SETTINGS.guide })}`;+ `${d.photo}#${resultKey({ prompt: promptFor(lightsOfLook(getLook(d.look)!), null, RELIGHT_SETTINGS.softness), variant: RELIGHT_SETTINGS.variant, guide: RELIGHT_SETTINGS.guide })}`;+/** The look an old Relight run picked with its "Lighting" option (it stored the option's value). */+const legacyLook = (v: string | undefined) => lookFromLegacy(v, getPreset(RELIGHT_PRESET)?.options?.find((o) => o.key === "light")?.choices);function useFinePointer(): boolean {const [fine, setFine] = useState(false);@@ -141,6 +146,8 @@ export function RelightTool({ app }: { app?: { name: string; description: stringconst canRun = owner || (account && gpu);const fine = useFinePointer();const create = useCreateGeneration();+ // The scene read goes through its own mutation, so a Generate sent at the same moment keeps its callbacks.+ const createScene = useCreateGeneration();const [photo, setPhoto] = useState<Photo>(() => demoPhoto(DEFAULT_DEMO));const [loaded, setLoaded] = useState<{ url: string; pic: HTMLImageElement } | null>(null);@@ -163,15 +170,20 @@ export function RelightTool({ app }: { app?: { name: string; description: stringconst [startedAt, setStartedAt] = useState<number | null>(null);const [took, setTook] = useState<number | null>(null);const [saving, setSaving] = useState<"keep" | "download" | null>(null);+ // The seed a run of this photo used before (from ?gen=), so later runs keep it.+ const [adopted, setAdopted] = useState<{ key: string; seed: number } | null>(null);+ // The photo the viewer did something with (Generate, a light or a look): its scene read may start.+ const [sceneWanted, setSceneWanted] = useState<string | null>(null);const sceneAsked = useRef(new Set<string>());+ const objectUrl = useRef<string | null>(null);+ const moveHinted = useRef(false);const inputId = useId();const promptId = useId();const glowId = useId();- const seed = useMemo(() => seedFor(photo.key), [photo.key]);const look: LookId | null = useMemo(() => LOOKS.find((l) => isLook(lights, l))?.id ?? null, [lights]);const prompt = promptFor(lights, override, RELIGHT_SETTINGS.softness);- const key = `${photo.key}#${resultKey({ prompt, variant: RELIGHT_SETTINGS.variant, seed, guide: RELIGHT_SETTINGS.guide })}`;+ const key = `${photo.key}#${resultKey({ prompt, variant: RELIGHT_SETTINGS.variant, guide: RELIGHT_SETTINGS.guide })}`;const img = loaded?.url === photo.url ? loaded.pic : null;const showing = relit?.key === key ? relit : null;const glow = glowAsked ?? !showing;@@ -192,20 +204,29 @@ export function RelightTool({ app }: { app?: { name: string; description: stringconst g = run.data;// Earlier runs on this photo (this session or before) and the one just made: their results come back without a run.const earlier = useGenerations({ models: [RELIGHT_MODEL], statuses: ["succeeded"], limit: 30 });- const fromRuns = useMemo(() => {+ const { fromRuns, runSeed } = useMemo(() => {const m = new Map<string, Result>();- if (!photo.serverUrl) return m;+ let newest: number | undefined;+ if (!photo.serverUrl) return { fromRuns: m, runSeed: newest };for (const r of [...(g?.status === "succeeded" ? [g] : []), ...(earlier.data ?? [])]) {const out = imageOut(r);const ex = relightExtraOf(r.request?.params?.extra);if (!out || !ex || firstImage(r) !== photo.serverUrl || !r.request.prompt) continue;- const k = `${photo.key}#${resultKey({ prompt: r.request.prompt, variant: ex.variant, seed: ex.seed, guide: ex.guide })}`;+ newest ??= ex.seed;+ const k = `${photo.key}#${resultKey({ prompt: r.request.prompt, variant: ex.variant, guide: ex.guide })}`;if (!m.has(k)) m.set(k, { url: out, genId: r.id });}- return m;+ return { fromRuns: m, runSeed: newest };}, [g, earlier.data, photo.serverUrl, photo.key]);+ // Later runs of a photo keep the seed its earlier runs used; a new photo's first comes from the photo.+ const seed = adopted?.key === photo.key ? adopted.seed : (runSeed ?? seedFor(photo.key));const current = results.get(key) ?? fromRuns.get(key);+ const demoResult = photo.demo ? demoKey(photo.demo) : null;const anyResult = useMemo(() => [...results.keys(), ...fromRuns.keys()].some((k) => k.startsWith(`${photo.key}#`)), [results, fromRuns, photo.key]);+ // A result this viewer made on this photo (the demo's shipped one is not theirs).+ const made = useMemo(() => fromRuns.size > 0 || [...results.keys()].some((k) => k.startsWith(`${photo.key}#`) && k !== demoResult), [results, fromRuns, photo.key, demoResult]);+ const blendAt = `${intensity}|${blend}`;+ const keptNow = current?.kept?.at === blendAt ? current.kept.url : null;// The result for these lights, when there is one: loaded and lined up once, then instant.useEffect(() => {@@ -217,7 +238,8 @@ export function RelightTool({ app }: { app?: { name: string; description: stringif (!pic) pic = await loadPic(current.url);if (fitOf === undefined) {setAligning(true);- const a = photo.demo ? null : await alignPictures(img, pic).catch(() => null);+ // The demo's shipped result is lined up already; anything generated is lined up here.+ const a = current.url === photo.demo?.relit ? null : await alignPictures(img, pic).catch(() => null);fitOf = a?.fit ?? null;setResults((m) => new Map(m).set(key, { ...current, pic, fit: fitOf, tiles: a?.tiles }));setAligning(false);@@ -229,7 +251,7 @@ export function RelightTool({ app }: { app?: { name: string; description: stringreturn () => {live = false;};- }, [current, img, key, photo.demo]);+ }, [current, img, key, photo.demo?.relit]);// The run finished: what follows it, once (its result comes in through fromRuns).useEffect(() => {@@ -253,7 +275,8 @@ export function RelightTool({ app }: { app?: { name: string; description: string}}, [g, runId, startedAt]);- // The scene read: once per stored photo, on the viewer's own GPU (or the studio's for its owner).+ // The scene read: once per stored photo, on the viewer's own GPU (or the studio's for its owner), after the viewer+ // first does something with it. Nothing is queued just for opening a photo.const scenes = useGenerations({ features: [RELIGHT_SCENE_FEATURE], statuses: ["succeeded"], limit: 30, steps: true }, {});const sceneRun = useGeneration(sceneId);const sceneGen = useMemo(() => {@@ -262,16 +285,17 @@ export function RelightTool({ app }: { app?: { name: string; description: string}, [sceneRun.data, scenes.data, photo.serverUrl]);useEffect(() => {const url = photo.serverUrl;- if (!url || !canRun || sceneGen || !scenes.isFetched || sceneAsked.current.has(url)) return;+ if (!url || !canRun || sceneGen || !scenes.isFetched || sceneWanted !== photo.key || photo.demo?.depth || sceneAsked.current.has(url)) return;sceneAsked.current.add(url);- create.mutate(sceneRequest(url), {+ // A GPU missing its depth or cut-out model fails quietly (the preview stays flat): no set-up dialog for a helper step.+ createScene.mutate({ ...sceneRequest(url), gpuCheck: "skip" } as GenerationRequest, {onSuccess: (items) => setSceneId(items[0]?.id ?? null),// The preview stays flat: nothing to say to the visitor.onError: () => {},});- // create is stable enough; a new photo or viewer asks again.+ // createScene is stable enough; a new photo or viewer asks again.// eslint-disable-next-line react-hooks/exhaustive-deps- }, [photo.serverUrl, canRun, sceneGen, scenes.isFetched]);+ }, [photo.serverUrl, photo.key, photo.demo?.depth, canRun, sceneGen, scenes.isFetched, sceneWanted]);const sceneUrls = useMemo(() => {if (photo.demo?.depth && photo.demo.matte) return { depth: photo.demo.depth, matte: photo.demo.matte };const depth = roleOut(sceneGen, "depth");@@ -288,7 +312,7 @@ export function RelightTool({ app }: { app?: { name: string; description: stringif (!live) return;const d = greyOf(depth, 128, 128);const m = greyOf(matte, 128, 128);- setSceneLoaded({ key: sceneKey, scene: { depth, matte, subjectDepth: subjectDepthOf(d, m) } });+ setSceneLoaded({ key: sceneKey, scene: { depth, matte, subjectDepth: subjectDepthOf(d, m), subject: subjectOf(m, 128, 128, picSize(matte)[0] / picSize(matte)[1]) } });}).catch(() => {});return () => {@@ -301,32 +325,60 @@ export function RelightTool({ app }: { app?: { name: string; description: stringconst q = new URLSearchParams(window.location.search);const url = q.get("image");const gen = q.get("gen");+ const named = (u: string) => {+ try {+ return decodeURIComponent(u.split("/").pop() ?? "") || "Photo";+ } catch {+ return "Photo";+ }+ };if (url?.startsWith("/api/files/")) {// eslint-disable-next-line react-hooks/set-state-in-effect -- the address is read once after hydration- setPhoto({ key: url, url, serverUrl: url, name: decodeURIComponent(url.split("/").pop() ?? "Photo") });+ setPhoto({ key: url, url, serverUrl: url, name: named(url) });}if (gen && /^[\w-]{4,40}$/.test(gen)) {fetch(`/api/generations/${gen}`).then((r) => (r.ok ? (r.json() as Promise<Generation>) : null)).then((prev) => {+ const ex = relightExtraOf(prev?.request?.params?.extra);// A run of this tool (its lights), or of the Relight app before it (its look).- if (!prev || (prev.presetId !== "app-relight" && !relightExtraOf(prev.request?.params?.extra))) return;- const ex = relightExtraOf(prev.request?.params?.extra);- const old = lookFromLegacy(prev.request?.presetOptions?.light);+ if (!prev || (prev.presetId !== RELIGHT_PRESET && !ex)) return;+ // A result of this tool opens on the photo it lit (its result comes back from the runs), not on the lit picture.+ const ours = prev.modelId === RELIGHT_MODEL || prev.modelId === RELIGHT_BLEND_MODEL;+ const orig = ours ? firstImage(prev) : undefined;+ const photoKey = orig?.startsWith("/api/files/") ? orig : url;+ if (orig?.startsWith("/api/files/")) setPhoto({ key: orig, url: orig, serverUrl: orig, name: named(orig) });+ const old = legacyLook(prev.request?.presetOptions?.light);const ls = ex?.lights ?? (old ? lightsOfLook(old) : null);if (ls?.length) {setLights(ls);setSelected(ls[0].id);}if (ex?.typed && prev.request.prompt) setOverride(prev.request.prompt);+ if (ex && photoKey) setAdopted({ key: photoKey, seed: ex.seed });+ // A kept blend: its Intensity and blend too.+ const raw = (prev.request?.params?.extra as { relight?: { intensity?: unknown; blend?: unknown } } | undefined)?.relight;+ if (prev.modelId === RELIGHT_BLEND_MODEL && raw) {+ if (typeof raw.intensity === "number" && Number.isFinite(raw.intensity)) setIntensity(Math.min(1, Math.max(0, raw.intensity)));+ if (raw.blend === "mix" || raw.blend === "transfer") setBlend(raw.blend);+ }}).catch(() => {});}}, []);+ // A photo brought from this device: its address is let go when another replaces it, and on leaving the page.+ useEffect(+ () => () => {+ if (objectUrl.current) URL.revokeObjectURL(objectUrl.current);+ },+ [],+ );+const changeLights = (next: Light[]) => {setLights(next);setShowIntensityHint(false);+ setSceneWanted(photo.key);};const updateLight = (l: Light) => changeLights(lights.map((x) => (x.id === l.id ? l : x)));const removeLight = (id: string) => {@@ -335,11 +387,21 @@ export function RelightTool({ app }: { app?: { name: string; description: stringsetSelected(next[0]?.id ?? null);};const addAt = (x: number, y: number) => {- // An empty spot gets a new light (a tap on a light selects it: the stage handles that).+ // An empty spot gets a new light (a tap on a light selects it: the stage handles that). With three placed, the+ // selected light moves there.const l = lightAt(lights, x, y);- if (!l) return void toast("Up to 3 lights. Tap one to move or change it.");- changeLights([...lights, l]);- setSelected(l.id);+ if (l) {+ changeLights([...lights, l]);+ setSelected(l.id);+ return;+ }+ const sel = lights.find((o) => o.id === selected);+ if (!sel) return void toast("Up to 3 lights. Pick one, then tap the photo to move it.");+ updateLight(moveLight(sel, x, y));+ if (!moveHinted.current) {+ moveHinted.current = true;+ toast("Up to 3 lights. Tap the photo to move the selected one.");+ }};const addDefault = () => {const l = defaultLight(lights);@@ -360,14 +422,23 @@ export function RelightTool({ app }: { app?: { name: string; description: stringif (!f) return;if (!f.type.startsWith("image/")) return void toast("Pick a photo (PNG, JPEG or WebP)");const url = URL.createObjectURL(f);+ let pic: HTMLImageElement;+ try {+ pic = await loadPic(url);+ } catch {+ URL.revokeObjectURL(url);+ return void toast("That photo didn't open. Pick a PNG, JPEG or WebP.");+ }+ if (objectUrl.current) URL.revokeObjectURL(objectUrl.current);+ objectUrl.current = url;const p: Photo = { key: `file:${f.name}:${f.size}:${f.lastModified}`, url, serverUrl: null, file: f, name: f.name, uploading: canRun };+ setLoaded({ url, pic });setPhoto(p);setRelit(null);setRunId(null);if (!lights.length) addDefaultFor();if (!canRun) return;try {- const pic = await loadPic(url);const asset = await uploadFile(await smallerFile(f, pic));setPhoto((cur) => (cur.key === p.key ? { ...cur, serverUrl: asset.url, uploading: false } : cur));} catch (e) {@@ -419,6 +490,7 @@ export function RelightTool({ app }: { app?: { name: string; description: string}if (current) return;setHint(null);+ setSceneWanted(photo.key);try {const url = await ensureServerPhoto();const guide = await guideFile();@@ -436,38 +508,48 @@ export function RelightTool({ app }: { app?: { name: string; description: string// eslint-disable-next-line react-hooks/exhaustive-deps}, [lights, guest, account, gpu, current, look, override, seed, photo, img, scene]);- /** The blend at the photo's full size, as a PNG. */+ /**+ * The blend at the photo's size, as a PNG: as large as this browser can draw and read back (phones cap a canvas at+ * about 16 MP), else a step smaller.+ */const renderFull = async (): Promise<Blob> => {if (!img || !showing) throw new Error("Nothing to save yet");const c = document.createElement("canvas");const r = new RelightRenderer(c);try {const [w, h] = picSize(img);- const s = Math.min(1, r.maxSize / Math.max(w, h));- const W = Math.round(w * s);- const H = Math.round(h * s);- r.set("uPhoto", fit(img, r.maxSize));+ const coarse = window.matchMedia?.("(pointer: coarse)").matches ?? false;+ const cap = Math.min(r.maxDraw, coarse ? 4096 : 8192);+ let s = Math.min(1, cap / Math.max(w, h), Math.sqrt(16e6 / (w * h)));r.set("uRelit", showing.pic);if (scene) {r.set("uDepth", scene.depth);r.set("uMatte", scene.matte);}- r.draw(- {- lights,- intensity,- aspect: w / h,- scene: { hasScene: !!scene, subjectDepth: scene?.subjectDepth ?? 0.5 },- mode: "result",- blend,- glow: false,- original: false,- align: showing.fit ?? undefined,- ambient: RELIGHT_SETTINGS.ambient,- },- W,- H,- );+ for (let attempt = 0; ; attempt++) {+ const W = Math.max(1, Math.round(w * s));+ const H = Math.max(1, Math.round(h * s));+ r.set("uPhoto", fit(img, Math.max(W, H)));+ r.draw(+ {+ lights,+ intensity,+ aspect: w / h,+ scene: { hasScene: !!scene, subjectDepth: scene?.subjectDepth ?? 0.5, subject: scene?.subject ?? undefined },+ mode: "result",+ blend,+ glow: false,+ original: false,+ align: showing.fit ?? undefined,+ ambient: RELIGHT_SETTINGS.ambient,+ },+ W,+ H,+ );+ // A browser that gave a smaller drawing buffer than asked would crop: draw again a step smaller.+ if ((r.gl.drawingBufferWidth === W && r.gl.drawingBufferHeight === H) || attempt >= 3) break;+ s *= 0.75;+ }const blob = await new Promise<Blob | null>((res) => c.toBlob(res, "image/png"));if (!blob) throw new Error("Couldn't make the picture");return blob;@@ -488,12 +570,15 @@ export function RelightTool({ app }: { app?: { name: string; description: string};/** Keeps the blend: the owner's Library (a local result), an account's own uploads. Returns its file. */const keep = async (): Promise<string | null> => {- if (current?.kept) return current.kept;+ if (keptNow) return keptNow;+ const at = blendAt;setSaving("keep");try {const file = new File([await renderFull()], `relight-${stamp()}.png`, { type: "image/png" });const asset = await uploadFile(file);if (owner) {+ // Its input is the photo it lit (stored first when it is the sample), so Relight on it opens that photo.+ const original = await ensureServerPhoto();const res = await fetch("/api/generations/local", {method: "POST",headers: { "Content-Type": "application/json" },@@ -502,15 +587,16 @@ export function RelightTool({ app }: { app?: { name: string; description: stringmodelId: RELIGHT_BLEND_MODEL,op: "relight",prompt: promptFor(lights, override, RELIGHT_SETTINGS.softness),- inputs: { images: [photo.serverUrl ?? asset.url] },+ title: relightTitle(lights, look ?? undefined),+ inputs: { images: [original] },params: { extra: { relight: { lights, ...(look && { look }), seed, variant: RELIGHT_SETTINGS.variant, intensity, blend, ...(current?.genId && { parent: current.genId }) } } },output: { url: asset.url, kind: "image", contentType: "image/png" },}),});if (!res.ok) throw responseError(res, ((await res.json().catch(() => ({}))) as { error?: string }).error ?? "Couldn't save");}- setResults((m) => (current ? new Map(m).set(key, { ...current, kept: asset.url }) : m));- toast.success("Saved to your Library");+ setResults((m) => (current ? new Map(m).set(key, { ...current, kept: { url: asset.url, at } }) : m));+ toast.success(owner ? "Saved to your Library" : "Saved to your uploads");return asset.url;} catch (e) {toastError(e);@@ -529,6 +615,8 @@ export function RelightTool({ app }: { app?: { name: string; description: stringconst line = busy ? "Lighting your photo…" : aligning ? "Lining it up…" : sceneBusy ? "Reading the scene…" : photo.uploading ? "Uploading…" : null;const keeper = owner || (account && gpu);const changed = anyResult && !current;+ // "Again" only once this viewer has generated on this photo.+ const again = made ? "Generate again" : "Generate";const [pw, ph] = img ? picSize(img) : [photo.demo?.width ?? 4, photo.demo?.height ?? 3];return (@@ -579,7 +667,7 @@ export function RelightTool({ app }: { app?: { name: string; description: stringonAddDefault={addDefault}onGenerate={() => void generate()}onOpenLight={() => document.getElementById("relight-light-panel")?.scrollIntoView({ behavior: "smooth", block: "nearest" })}- onPainted={(ms) => setPainted(ms)}+ onPainted={owner ? setPainted : undefined}/></div><div className="flex flex-wrap items-center gap-2 text-[12px] text-muted-foreground">@@ -589,7 +677,7 @@ export function RelightTool({ app }: { app?: { name: string; description: string<span className="inline-flex items-center gap-1.5 rounded-full bg-brand-faint px-2.5 py-1 text-[12px] font-medium text-brand-text" data-testid="lights-changed">Lights changed<button type="button" className="underline underline-offset-2" onClick={() => void generate()} disabled={busy}>- Generate again+ {again}</button></span>)}@@ -657,7 +745,6 @@ export function RelightTool({ app }: { app?: { name: string; description: string/></div><LooksRow look={look} onLook={pickLook} />- {!look && lights.length > 0 && <p className="-mt-2 text-[12px] text-muted-foreground">Your lights</p>}</div></Panel>@@ -720,7 +807,7 @@ export function RelightTool({ app }: { app?: { name: string; description: string<div className="space-y-2"><Button size="lg" className="h-12 w-full rounded-full" onClick={() => void generate()} disabled={busy || !lights.length || photo.uploading}>{busy ? <Loader2 className="size-4 animate-spin" /> : current ? <Check className="size-4" /> : <Sparkles className="size-4" />}- {busy ? "Lighting your photo…" : current ? "Lit with these lights" : changed ? "Generate again" : "Generate lighting"}+ {busy ? "Lighting your photo…" : current ? "Lit with these lights" : changed && made ? "Generate again" : "Generate lighting"}</Button>{hint && (<p className="text-center text-[12px] text-muted-foreground" role="status">@@ -733,9 +820,9 @@ export function RelightTool({ app }: { app?: { name: string; description: string<Panel title="Your lit photo"><div className="flex flex-wrap gap-2">{keeper && (- <Button className="h-11 rounded-full sm:h-9" onClick={() => void keep()} disabled={!!saving || !!current?.kept}>- {saving === "keep" ? <Loader2 className="size-3.5 animate-spin" /> : current?.kept ? <Check className="size-3.5" /> : <Save className="size-3.5" />}- {current?.kept ? "Kept" : "Keep"}+ <Button className="h-11 rounded-full sm:h-9" onClick={() => void keep()} disabled={!!saving || !!keptNow}>+ {saving === "keep" ? <Loader2 className="size-3.5 animate-spin" /> : keptNow ? <Check className="size-3.5" /> : <Save className="size-3.5" />}+ {keptNow ? "Kept" : "Keep"}</Button>)}<Button variant="outline" className="h-11 rounded-full sm:h-9" onClick={() => void download()} disabled={!!saving}>diff --git a/src/lib/catalog/apps.ts b/src/lib/catalog/apps.tsindex 060a3364..508c18dc 100644--- a/src/lib/catalog/apps.ts+++ b/src/lib/catalog/apps.ts@@ -445,7 +445,7 @@ export const APPS: Preset[] = [app({name: "Relight",category: "Camera",- description: "Place coloured lights on your photo and watch them land",+ description: "Change the lighting of any photo",icon: "Lamp",hue: 50,// Its page is its own tool (tap to place lights, a live preview, Generate lighting, an Intensity blend:diff --git a/src/lib/comfy-install.ts b/src/lib/comfy-install.tsindex 8df675da..6452c555 100644--- a/src/lib/comfy-install.ts+++ b/src/lib/comfy-install.ts@@ -45,7 +45,7 @@ export function nodeInstall(node: { name: string; repo: string }): string {// One node file in a Hugging Face model repo, at a commit (Viggle's viggle_turbo.py): downloaded as the package's// __init__.py, never cloned (the repo holds gigabytes of weights).const file = hfNodeFile(node.repo);- if (file) return `mkdir -p "$COMFYUI/custom_nodes/${node.name}" && wget -c -O "$COMFYUI/custom_nodes/${node.name}/__init__.py" "${node.repo}"`;+ if (file) return `mkdir -p "$COMFYUI/custom_nodes/${node.name}" && wget -q -O "$COMFYUI/custom_nodes/${node.name}/__init__.py" "${node.repo}"`;const pin = pinnedRepo(node.repo);if (!pin) return `git -C "$COMFYUI/custom_nodes" clone ${node.repo}`;const dest = `"$COMFYUI/custom_nodes/${node.name}"`;diff --git a/src/lib/relight/demo.ts b/src/lib/relight/demo.tsindex 09a0cdec..c4c77288 100644--- a/src/lib/relight/demo.ts+++ b/src/lib/relight/demo.ts@@ -2,7 +2,11 @@* The photo the Relight tool opens on, with its relit result shipped as a static file: Intensity, the looks and the* preview work at once for everyone, guests too, with nothing to upload or run. A demo with a scene read ships its* depth map and cut-out too (the preview is then depth-true); without them it uses the flat preview.+ *+ * The sample is the app's cover pair (its before and after stills), so its addresses carry the pair's content version+ * as Home's slider does: a new cover gets new addresses, and its `look` changes in the same commit.*/+import { PRESET_BEFORE_AFTER } from "../preset-before-after.generated";import type { LookId } from "./lights";export interface RelightDemo {@@ -19,12 +23,15 @@ export interface RelightDemo {matte?: string;}+const version = PRESET_BEFORE_AFTER["app-relight"];+const v = version ? `?v=${version}` : "";+export const RELIGHT_DEMOS: readonly RelightDemo[] = [{id: "cliffs",alt: "A model in a teal knit on a clifftop by the sea",- photo: "/previews/presets/ba/1280/app-relight-before.jpg",- relit: "/previews/presets/ba/1280/app-relight-after.jpg",+ photo: `/previews/presets/ba/1280/app-relight-before.jpg${v}`,+ relit: `/previews/presets/ba/1280/app-relight-after.jpg${v}`,look: "golden-hour",width: 1280,height: 960,diff --git a/src/lib/relight/engine.ts b/src/lib/relight/engine.tsindex e8e34fa6..c1fdbe2d 100644--- a/src/lib/relight/engine.ts+++ b/src/lib/relight/engine.ts@@ -7,13 +7,15 @@* recorded as a local result.*/import type { GenerationRequest } from "../catalog/types";-import { MAX_LIGHTS, promptFor, type Light, type LookId, type RelightExtra, type SoftnessWording } from "./lights";+import { getLook, MAX_LIGHTS, promptFor, relightExtraOf, type Light, type LookId, type RelightExtra, type SoftnessWording } from "./lights";export const RELIGHT_PRESET = "app-relight";/** Its own feature, not the app preset: a preset run would put the app's old words in front of the lights' own. */export const RELIGHT_FEATURE = "relight";/** Generate lighting: Qwen-Image 2.1 + the 6-step speed LoRA, the photo plus the words. */export const RELIGHT_MODEL = "oss-qwen-image-21-relight";+/** Its workflow: the tool opens to everyone once this one has passed its check (src/server/relight.ts). */+export const RELIGHT_WORKFLOW = "qwen-image-21-relight";/** The scene read: depth (near = bright) and the subject's matte. */export const RELIGHT_SCENE_MODEL = "oss-relight-scene";/** Its runs are steps: the Library leaves them out (HELPER_SUFFIX). */@@ -57,6 +59,24 @@ export interface RelightRun {seed: number;}+/** What the Library calls a result: the look, else how many lights lit it. */+export function relightTitle(lights: readonly Light[], look?: LookId): string {+ const named = look && getLook(look);+ if (named) return `Relight · ${named.label}`;+ const n = Math.max(1, Math.min(MAX_LIGHTS, lights.length));+ return `Relight · ${n} light${n > 1 ? "s" : ""}`;+}++/**+ * The title the server gives a Generate lighting run (the API takes no title from a client): its look, else its lights,+ * so the Library and "Your lit photos" show that rather than the long prompt.+ */+export function relightRunTitle(req: Pick<GenerationRequest, "modelId" | "params">): string | undefined {+ if (req.modelId !== RELIGHT_MODEL) return undefined;+ const ex = relightExtraOf(req.params?.extra);+ return ex ? relightTitle(ex.lights, ex.look) : undefined;+}+/** The run for Generate lighting. */export function relightRequest(r: RelightRun): GenerationRequest {const lights = r.lights.slice(0, MAX_LIGHTS);diff --git a/src/lib/relight/guide.ts b/src/lib/relight/guide.tsindex 425b2d45..e71850d0 100644--- a/src/lib/relight/guide.ts+++ b/src/lib/relight/guide.ts@@ -36,8 +36,9 @@ export function drawGuide(photo: Rgba, w: number, h: number, lights: readonly Lilet b = srgbToLinear(photo[i + 2]) * DARKEN;const edge = matte ? edgeAt(x, y) : 0;for (const { l, p, lin, power } of packed) {- const dx = px - p.pos[0];- const dy = py - p.pos[1];+ // Drawn where the light was placed on the photo.+ const dx = px - p.mark[0];+ const dy = py - p.mark[1];const d2 = dx * dx + dy * dy;const radius = p.params[1];let k: number;diff --git a/src/lib/relight/lights.ts b/src/lib/relight/lights.tsindex 3838e952..566562b9 100644--- a/src/lib/relight/lights.ts+++ b/src/lib/relight/lights.ts@@ -63,6 +63,16 @@ export function sideOf(x: number): Side {return x < 0.35 ? "left" : x > 0.65 ? "right" : "front";}+export const SIDES: readonly Side[] = ["left", "front", "right"];+export const SIDE_LABELS: Record<Side, string> = { left: "Left", front: "Front", right: "Right" };+/** Where a side's marker sits when its chip moves it (0 left … 1 right). */+export const SIDE_CENTER: Record<Side, number> = { left: 0.15, front: 0.5, right: 0.85 };++/** The marker's x for a side chip: kept when it is on that side already, else the side's centre. */+export function xForSide(x: number, side: Side): number {+ return sideOf(x) === side ? x : SIDE_CENTER[side];+}+/** The strength as a number (0..1): the slider's value, else the chip's. */export function strengthValueOf(l: Pick<Light, "strength" | "strengthValue">): number {if (typeof l.strengthValue === "number" && Number.isFinite(l.strengthValue)) return clamp01(l.strengthValue);@@ -214,9 +224,13 @@ export function getLook(id: string | undefined | null): Look | undefined {return LOOKS.find((l) => l.id === id);}-/** The look an old run's "Lighting" option picked (Reuse of a run from before the tool). */-export function lookFromLegacy(label: string | undefined | null): Look | undefined {- if (!label) return undefined;+/**+ * The look an old run's "Lighting" option picked (Reuse of a run from before the tool). A run stores the option's+ * value; with the option's choices it is read back through its label.+ */+export function lookFromLegacy(v: string | undefined | null, choices: readonly { value: string; label: string; prompt?: string }[] = []): Look | undefined {+ if (!v) return undefined;+ const label = choices.find((c) => c.value === v || c.label === v || c.prompt === v)?.label ?? v;const t = label.trim().toLowerCase();return LOOKS.find((l) => l.legacy?.toLowerCase() === t || l.label.toLowerCase() === t);}@@ -387,9 +401,12 @@ export function seedFor(photoKey: string): number {return (h >>> 0) % 2147483647;}-/** What a result is cached by: the words, the engine variant, the seed and the guide. */-export function resultKey(o: { prompt: string; variant: string; seed: number; guide?: boolean }): string {- return `${o.variant}|${o.seed}|${o.guide ? 1 : 0}|${o.prompt}`;+/**+ * What a result is matched by: the words, the engine variant and the guide. Not the seed: the same rig on the same+ * photo finds its earlier result whichever session made it.+ */+export function resultKey(o: { prompt: string; variant: string; guide?: boolean }): string {+ return `${o.variant}|${o.guide ? 1 : 0}|${o.prompt}`;}/** What a run stores in params.extra.relight (Reuse and Retry put the rig back). */diff --git a/src/lib/relight/shader.ts b/src/lib/relight/shader.tsindex 4ac666dc..021693f3 100644--- a/src/lib/relight/shader.ts+++ b/src/lib/relight/shader.ts@@ -4,9 +4,12 @@** Before Generate (mode 0) it paints the placed lights onto the photo in linear light: a lights-only estimate* (the photo's own texture times ambient plus each light's falloff, wrapped diffuse and rim) mixed with the photo by- * Intensity. With a scene read, surfaces face where the depth map says and "behind" lights rim the cut-out's edge;- * without one, a soft guess from the photo's shading. After Generate (mode 1) it blends the original with the relit- * picture, lined up by the alignment fit: a plain mix, or light transfer (the original's detail, the new light).+ * Intensity. A light's marker says the direction it comes from: it sits that way round the subject, at a gap its+ * distance band sets, so even a light placed at the frame's edge reaches the subject. With a scene read, surfaces+ * face where the depth map says and "behind" lights rim the cut-out's edge; without one, a soft guess from the photo's+ * shading. After Generate (mode 1) it blends the original with the relit picture, lined up by the alignment fit: a+ * plain mix, or light transfer (the original's detail, the new light), its ratio read from low-passed copies of both+ * pictures (uPhotoLo, uRelitLo) so strong contours leave no echo.*/import { hexToRgb, MAX_LIGHTS, srgbToLinear, strengthValueOf, type Distance, type Light, type Softness } from "./lights";import type { BlendMode } from "./engine";@@ -23,9 +26,11 @@ export const FRAGMENT = `precision highp float;varying vec2 vUv;uniform sampler2D uPhoto;+uniform sampler2D uPhotoLo;uniform sampler2D uDepth;uniform sampler2D uMatte;uniform sampler2D uRelit;+uniform sampler2D uRelitLo;uniform float uAspect;uniform vec2 uTexel;uniform vec2 uDepthTexel;@@ -41,44 +46,50 @@ uniform float uBlur;uniform vec4 uAlign;uniform int uCount;uniform vec3 uPos[${MAX_LIGHTS}];+uniform vec2 uMark[${MAX_LIGHTS}];uniform vec3 uColor[${MAX_LIGHTS}];uniform vec4 uParams[${MAX_LIGHTS}];const float Z = 0.6;vec3 toLin(vec3 c) { return mix(c / 12.92, pow((c + 0.055) / 1.055, vec3(2.4)), step(0.04045, c)); }-vec3 toSrgb(vec3 c) { c = max(c, 0.0); return mix(c * 12.92, 1.055 * pow(c, vec3(1.0 / 2.4)) - 0.055, step(0.0031308, c)); }+vec3 toSrgb(vec3 c) { c = clamp(c, 0.0, 1.0); return mix(c * 12.92, 1.055 * pow(c, vec3(1.0 / 2.4)) - 0.055, step(0.0031308, c)); }float luma(vec3 c) { return dot(c, vec3(0.2126, 0.7152, 0.0722)); }vec3 knee(vec3 c) {float k = 0.8;vec3 over = max(c - k, 0.0);return min(c, vec3(k)) + (1.0 - k) * (1.0 - exp(-over / (1.0 - k)));}+vec2 aligned(vec2 uv) { return vec2(uAlign.x * uv.x + uAlign.y, uAlign.z * uv.y + uAlign.w); }vec3 photo(vec2 uv) { return toLin(texture2D(uPhoto, uv).rgb); }-vec3 relit(vec2 uv) { return toLin(texture2D(uRelit, vec2(uAlign.x * uv.x + uAlign.y, uAlign.z * uv.y + uAlign.w)).rgb); }+vec3 photoLo(vec2 uv) { return toLin(texture2D(uPhotoLo, uv).rgb); }+vec3 relit(vec2 uv) { return toLin(texture2D(uRelit, aligned(uv)).rgb); }+vec3 relitLo(vec2 uv) { return toLin(texture2D(uRelitLo, aligned(uv)).rgb); }float depthAt(vec2 uv) { return texture2D(uDepth, uv).r; }float matteAt(vec2 uv) { return texture2D(uMatte, uv).r; }+// About a Gaussian of uBlur: nine taps over the low-passed copy, so no tap skips detail between them.vec3 blurPhoto(vec2 uv) {vec2 r = vec2(uBlur / uAspect, uBlur);- vec3 s = photo(uv) * 0.25;- s += (photo(uv + vec2(r.x, 0.0)) + photo(uv - vec2(r.x, 0.0)) + photo(uv + vec2(0.0, r.y)) + photo(uv - vec2(0.0, r.y))) * 0.125;- s += (photo(uv + r) + photo(uv - r) + photo(uv + vec2(r.x, -r.y)) + photo(uv - vec2(r.x, -r.y))) * 0.0625;+ vec3 s = photoLo(uv) * 0.25;+ s += (photoLo(uv + vec2(r.x, 0.0)) + photoLo(uv - vec2(r.x, 0.0)) + photoLo(uv + vec2(0.0, r.y)) + photoLo(uv - vec2(0.0, r.y))) * 0.125;+ s += (photoLo(uv + r) + photoLo(uv - r) + photoLo(uv + vec2(r.x, -r.y)) + photoLo(uv - vec2(r.x, -r.y))) * 0.0625;return s;}vec3 blurRelit(vec2 uv) {vec2 r = vec2(uBlur / uAspect, uBlur);- vec3 s = relit(uv) * 0.25;- s += (relit(uv + vec2(r.x, 0.0)) + relit(uv - vec2(r.x, 0.0)) + relit(uv + vec2(0.0, r.y)) + relit(uv - vec2(0.0, r.y))) * 0.125;- s += (relit(uv + r) + relit(uv - r) + relit(uv + vec2(r.x, -r.y)) + relit(uv - vec2(r.x, -r.y))) * 0.0625;+ vec3 s = relitLo(uv) * 0.25;+ s += (relitLo(uv + vec2(r.x, 0.0)) + relitLo(uv - vec2(r.x, 0.0)) + relitLo(uv + vec2(0.0, r.y)) + relitLo(uv - vec2(0.0, r.y))) * 0.125;+ s += (relitLo(uv + r) + relitLo(uv - r) + relitLo(uv + vec2(r.x, -r.y)) + relitLo(uv - vec2(r.x, -r.y))) * 0.0625;return s;}+// Each light's glow, where it was placed on the photo.vec3 glow(vec3 base, vec2 p) {vec3 o = base;for (int i = 0; i < ${MAX_LIGHTS}; i++) {if (i >= uCount) break;- vec2 d = p - uPos[i].xy;+ vec2 d = p - uMark[i];float h = exp(-dot(d, d) / 0.0036) * 0.55 + exp(-dot(d, d) / 0.04) * 0.18;vec3 c = toSrgb(uColor[i]) * h;o = 1.0 - (1.0 - o) * (1.0 - clamp(c, 0.0, 1.0));@@ -93,6 +104,7 @@ void main() {vec2 p = vec2(uv.x * uAspect, uv.y);vec3 outc;if (uMode > 0.5) {+ // The result: at Intensity 0 the photo, and (plain) at 100 % the relit picture, untouched.float t = uIntensity;if (uBlend > 0.5) {vec3 ratio = clamp(blurRelit(uv) / max(blurPhoto(uv), vec3(0.004)), 0.0, 8.0);@@ -103,12 +115,11 @@ void main() {} else {// The photo's own texture: its colour over its local brightness, so skin and fabric keep their detail.vec2 r = vec2(uBlur / uAspect, uBlur) * 1.5;- float lc = luma(P);- float l1 = luma(photo(uv + vec2(r.x, 0.0)));- float l2 = luma(photo(uv - vec2(r.x, 0.0)));- float l3 = luma(photo(uv + vec2(0.0, r.y)));- float l4 = luma(photo(uv - vec2(0.0, r.y)));- float lb = (lc * 2.0 + l1 + l2 + l3 + l4) / 6.0;+ float lb = luma(photoLo(uv));+ float l1 = luma(photoLo(uv + vec2(r.x, 0.0)));+ float l2 = luma(photoLo(uv - vec2(r.x, 0.0)));+ float l3 = luma(photoLo(uv + vec2(0.0, r.y)));+ float l4 = luma(photoLo(uv - vec2(0.0, r.y)));vec3 albedo = P * pow(0.25 / (lb + 0.05), 0.5);float d = uHasScene > 0.5 ? depthAt(uv) : 0.5;vec3 N;@@ -130,14 +141,14 @@ void main() {for (int i = 0; i < ${MAX_LIGHTS}; i++) {if (i >= uCount) break;vec3 Ld = uPos[i] - S;- float radius = uParams[i].y;- float fall = exp(-dot(Ld.xy, Ld.xy) / (radius * radius));+ float r2 = uParams[i].y * uParams[i].y;+ float fall = 1.0 / (1.0 + dot(Ld.xy, Ld.xy) / r2);vec3 L = normalize(Ld);float w = uParams[i].z;float diffuse = clamp((dot(N, L) + w) / (1.0 + w), 0.0, 1.0);float k;if (uParams[i].w > 0.5) {- float fallRim = exp(-dot(Ld.xy, Ld.xy) / (radius * radius * 2.5));+ float fallRim = 1.0 / (1.0 + dot(Ld.xy, Ld.xy) / (r2 * 2.5));if (uHasScene > 0.5) {vec2 outward = length(gm) > 1e-4 ? -normalize(gm) : vec2(0.0);float facing = 0.4 + 0.6 * clamp(dot(outward, normalize(Ld.xy + vec2(1e-5))), 0.0, 1.0);@@ -147,34 +158,49 @@ void main() {}} else {// The far wall stays darker than the subject when the light is close: off the subject, falloff counts its depth too.- float fall3 = exp(-dot(Ld, Ld) / (radius * radius));+ float fall3 = 1.0 / (1.0 + dot(Ld, Ld) / r2);k = mix(fall3, fall, m) * diffuse;}C += uColor[i] * uParams[i].x * k;}- vec3 lit = albedo * (uAmbient + C);- outc = mix(P, lit, uIntensity);+ // The highlight knee is the preview's own (its lights can overshoot); a result is never compressed.+ outc = mix(P, knee(albedo * (uAmbient + C)), uIntensity);}- vec3 o = toSrgb(knee(outc));+ vec3 o = toSrgb(outc);if (uGlow > 0.5) o = glow(o, p);gl_FragColor = vec4(o, 1.0);}`;-/** How far each distance band reaches, in picture heights. */-const RADIUS: Record<Distance, number> = { close: 0.28, mid: 0.5, far: 0.95 };-/** Toward the camera from the subject; behind lights sit behind it. */-const Z_OFFSET: Record<Distance, number> = { close: 0.15, mid: 0.4, far: 1.0 };-const SOFT_VALUE: Record<Softness, number> = { hard: 0, soft: 0.5, diffuse: 1 };+/** The gap between the subject's edge and a light, per distance band, in picture heights. */+const GAP: Record<Distance, number> = { close: 0.1, mid: 0.35, far: 0.8 };+/** How far each light reaches, as a share of its distance to the subject's centre (harder light falls off sooner). */+const REACH: Record<Softness, number> = { hard: 0.9, soft: 1.1, diffuse: 1.3 };const WRAP: Record<Softness, number> = { hard: 0, soft: 0.35, diffuse: 0.7 };+/** How far in front of the subject a light sits, as a share of its distance (about 40° off the camera's axis). */+const LIFT = 0.8;+/** Closer than this to the subject's centre (picture heights), a marker brings its light round to the front. */+const NEAR = 0.12;const Z = 0.6;const clamp = (v: number, lo: number, hi: number) => (Number.isFinite(v) ? Math.min(hi, Math.max(lo, v)) : lo);+/** Where the subject is: its centre (x 0 left … 1 right, y 0 top … 1 bottom) and its radius in picture heights. */+export interface Subject {+ x: number;+ y: number;+ r: number;+}++/** Without a scene read: a subject a little above the middle, as most portraits frame one. */+export const FLAT_SUBJECT: Subject = { x: 0.5, y: 0.45, r: 0.22 };+export interface SceneInfo {/** A depth map and matte are loaded. */hasScene: boolean;/** The subject's median depth (0 far … 1 near); 0.5 without a scene. */subjectDepth: number;+ /** Where the matte says the subject is (FLAT_SUBJECT without one). */+ subject?: Subject;}/** Where the relit picture's pixels sit: relit uv = (sx·x + tx, sy·y + ty), in uv units. Identity = no shift. */@@ -212,36 +238,73 @@ export interface Uniforms {ints: Record<string, number>;vec2: Record<string, [number, number]>;vec4: Record<string, [number, number, number, number]>;- arrays: { uPos: number[]; uColor: number[]; uParams: number[] };+ arrays: { uPos: number[]; uMark: number[]; uColor: number[]; uParams: number[] };+}++export interface PackedLight {+ /** Where the light is, in the shader's units: x·aspect, y from the top, z toward the camera. */+ pos: [number, number, number];+ /** Where its marker sits on the photo (its glow), same units. */+ mark: [number, number];+ /** Linear colour. */+ color: [number, number, number];+ /** Power, reach, wrap, behind. */+ params: [number, number, number, number];}-/** One light's packed values: position (x·aspect, 1−y, z), linear colour × nothing, and power, radius, wrap, behind. */-export function packLight(l: Light, aspect: number, subjectDepth: number) {+/**+ * One light's packed values. Its marker is a direction from the subject: the light sits that way round it, the gap+ * set by its distance band (a behind light just behind the outline), raised toward the camera.+ */+export function packLight(l: Light, aspect: number, subjectDepth: number, subject: Subject = FLAT_SUBJECT): PackedLight {const a = clamp(aspect, 0.1, 10);- const soft = SOFT_VALUE[l.softness] ?? 0.5;- const radius = clamp(RADIUS[l.distance] * (0.7 + 0.6 * soft), 0.05, 2);- const z = clamp(subjectDepth, 0, 1) * Z + (l.behind ? -0.25 : Z_OFFSET[l.distance]);+ const cx = clamp(subject.x, 0, 1) * a;+ const cy = clamp(subject.y, 0, 1);+ const mark: [number, number] = [clamp(l.x, 0, 1) * a, 1 - clamp(l.y, 0, 1)];+ const gap = (GAP[l.distance] ?? GAP.mid) * (l.behind ? 0.25 : 1);+ const reach = clamp(subject.r, 0.05, 1) + gap;+ const dx = mark[0] - cx;+ const dy = mark[1] - cy;+ const k = reach / Math.max(Math.hypot(dx, dy), NEAR);+ const z0 = clamp(subjectDepth, 0, 1) * Z;const power = clamp(strengthValueOf(l) * 1.5, 0, 2);const [r, g, b] = hexToRgb(l.color).map(srgbToLinear);return {- pos: [clamp(l.x, 0, 1) * a, 1 - clamp(l.y, 0, 1), z] as [number, number, number],- color: [r, g, b] as [number, number, number],- params: [power, radius, WRAP[l.softness] ?? 0.35, l.behind ? 1 : 0] as [number, number, number, number],+ pos: [cx + dx * k, cy + dy * k, l.behind ? z0 - 0.25 : z0 + reach * LIFT],+ mark,+ color: [r, g, b],+ params: [power, clamp(reach * (REACH[l.softness] ?? REACH.soft), 0.05, 2), WRAP[l.softness] ?? WRAP.soft, l.behind ? 1 : 0],};}+/**+ * A front light's share of its power at a point, as the preview's GLSL works it out (falloff × wrapped diffuse, on the+ * subject): the tests' reference. `at` and `normal` in the shader's units.+ */+export function reachAt(p: PackedLight, at: readonly [number, number, number], normal: readonly [number, number, number] = [0, 0, 1]): number {+ const d = [p.pos[0] - at[0], p.pos[1] - at[1], p.pos[2] - at[2]];+ const fall = 1 / (1 + (d[0] ** 2 + d[1] ** 2) / p.params[1] ** 2);+ const len = Math.hypot(d[0], d[1], d[2]) || 1;+ const w = p.params[2];+ const diffuse = clamp(((normal[0] * d[0] + normal[1] * d[1] + normal[2] * d[2]) / len + w) / (1 + w), 0, 1);+ return fall * diffuse;+}+/** Every uniform for one draw, clamped; at most MAX_LIGHTS lights are packed. */export function uniforms(s: StageState): Uniforms {const aspect = clamp(s.aspect, 0.1, 10);const subject = s.scene.hasScene ? clamp(s.scene.subjectDepth, 0, 1) : 0.5;+ const where = (s.scene.hasScene && s.scene.subject) || FLAT_SUBJECT;const lights = s.lights.slice(0, MAX_LIGHTS);const pos: number[] = [];+ const mark: number[] = [];const color: number[] = [];const params: number[] = [];for (let i = 0; i < MAX_LIGHTS; i++) {const l = lights[i];- const p = l ? packLight(l, aspect, subject) : { pos: [0, 0, 0], color: [0, 0, 0], params: [0, 1, 0, 0] };+ const p = l ? packLight(l, aspect, subject, where) : { pos: [0, 0, 0], mark: [0, 0], color: [0, 0, 0], params: [0, 1, 0, 0] };pos.push(...p.pos);+ mark.push(...p.mark);color.push(...p.color);params.push(...p.params);}@@ -267,7 +330,7 @@ export function uniforms(s: StageState): Uniforms {uDepthTexel: [1 / Math.max(1, s.depthWidth ?? 512), 1 / Math.max(1, s.depthHeight ?? 512)],},vec4: { uAlign: [clamp(fit.sx, 0.8, 1.25), clamp(fit.tx, -0.25, 0.25), clamp(fit.sy, 0.8, 1.25), clamp(fit.ty, -0.25, 0.25)] },- arrays: { uPos: pos, uColor: color, uParams: params },+ arrays: { uPos: pos, uMark: mark, uColor: color, uParams: params },};}@@ -289,3 +352,27 @@ export function subjectDepthOf(depth: ArrayLike<number>, matte: ArrayLike<number}return 0.5;}++/**+ * Where the subject is, from its matte (w × h, one value per pixel, 0..255): the cut-out's centre and the radius of a+ * disc of its area, in picture heights. `aspect` is the picture's (a matte read back at another shape keeps it).+ * Null when the cut-out is too small to say.+ */+export function subjectOf(matte: ArrayLike<number>, w: number, h: number, aspect = w / h): Subject | null {+ let sx = 0;+ let sy = 0;+ let n = 0;+ for (let y = 0; y < h; y++)+ for (let x = 0; x < w; x++) {+ if (matte[y * w + x] < 128) continue;+ sx += x + 0.5;+ sy += y + 0.5;+ n++;+ }+ if (n < w * h * 0.01) return null;+ const area = (n / (w * h)) * aspect;+ return { x: sx / n / w, y: sy / n / h, r: clamp(Math.sqrt(area / Math.PI), 0.08, 0.6) };+}++/** The low-passed copy's short side, in pixels: one texel is about the light-transfer blur (σ 1.2 % of the short side). */+export const LOW_SHORT = 80;diff --git a/src/server/generations.ts b/src/server/generations.tsindex 1eb14be3..7fc303ec 100644--- a/src/server/generations.ts+++ b/src/server/generations.ts@@ -2586,14 +2586,17 @@ export function recordLocalGeneration(input: {modelId: string;op: Generation["op"];prompt: string;+ /** What the tool calls its result, shown instead of the prompt. */+ title?: string;inputs: GenerationRequest["inputs"];params?: GenerationRequest["params"];output: { url: string; kind: OutputFile["kind"]; contentType?: string };}): Generation {const model = getModel(input.modelId);- if (!model || !model.routes.some((r) => r.provider === "local")) throw new Error("Not a browser tool");+ // A browser tool's own result: the model's local route for this very step (a grade is not recorded as a Relight blend).+ if (!model || !model.routes.some((r) => r.provider === "local" && r.op === input.op)) throw new Error("Not a browser tool");const now = Date.now();- const req: GenerationRequest = { feature: input.feature, modelId: input.modelId, op: input.op, prompt: input.prompt, inputs: input.inputs, params: input.params };+ const req: GenerationRequest = { feature: input.feature, modelId: input.modelId, op: input.op, prompt: input.prompt, ...(input.title && { title: input.title }), inputs: input.inputs, params: input.params };const row: Row = {id: nanoid(12),batch_id: null,diff --git a/src/server/relight.ts b/src/server/relight.tsnew file mode 100644index 00000000..75f8adad--- /dev/null+++ b/src/server/relight.ts@@ -0,0 +1,19 @@+import "server-only";+import fs from "node:fs";+import path from "node:path";+import { RELIGHT_WORKFLOW } from "@/lib/relight/engine";++const MANIFEST = path.join(process.cwd(), "workflows", "comfyui", "manifest.json");++/**+ * Whether the Relight app's own tool is open to everyone: its Generate lighting workflow has passed its check on a GPU+ * (the manifest's `validated`). Until then the app's page stays its composer for visitors and the owner gets the tool.+ */+export function relightToolLive(manifest = MANIFEST): boolean {+ try {+ const m = JSON.parse(fs.readFileSync(manifest, "utf8")) as { workflows?: { id?: string; validated?: boolean }[] };+ return m.workflows?.some((w) => w.id === RELIGHT_WORKFLOW && w.validated === true) ?? false;+ } catch {+ return false;+ }+}diff --git a/tests/e2e/relight.mjs b/tests/e2e/relight.mjsindex d27b24f7..ae7337af 100644--- a/tests/e2e/relight.mjs+++ b/tests/e2e/relight.mjs@@ -1,15 +1,21 @@// Browser check of Relight (the app's own tool: tap to place lights, a live preview, Generate lighting, Intensity).// Usage: node tests/e2e/relight.mjs [appUrl] [outDir] [--guest guestAppUrl]-// appUrl: the app signed in as the owner, its ComfyUI a stand-in (tests/helpers/fake-comfy-runner.ts --output image).+// appUrl: the app signed in as the owner, its ComfyUI a stand-in (tests/helpers/fake-comfy-runner.ts --output image+// --echo: a result is the photo it was made from, so it lines up).// --guest: the same build with public sign-up on, seen signed out.// Checks, on a phone (390 x 844, touch) and a desktop (1440 x 900): the page opens on the demo with its result and no-// sideways scroll; an Intensity chip changes the picture at once; a tap on the photo places a light where it was tapped;-// a colour chip changes the light near it and leaves the far corner alone; a look places its lights; Download gives a-// PNG at the photo's size; on the desktop the arrow keys move the selected light and Delete removes it; Generate-// lighting runs the hidden relight model on the stand-in and the result comes back. With --guest: a guest uses the demo,-// places a light, and Generate asks them to create an account (no error toast). A page error fails the run.+// sideways scroll; an Intensity chip changes the picture at once; a look places its lights and Neon night turns the+// subject's left cheek toward magenta; a tap on the photo places a light where it was tapped; a colour chip changes the+// light near it and leaves the far corner alone; with three lights a tap moves the selected one, and the side chips+// move it too; Download gives a PNG at the photo's size; on the desktop the arrow keys move the selected light and+// Delete removes it; Generate lighting runs the hidden relight model on the stand-in and the result comes back; Keep+// keeps that blend and a new Intensity is a new keep; Generate on an uploaded photo lines its result up (the owner's+// line counts the tiles). With --guest: until the tool is open to everyone a guest gets the app's composer; once it+// is, a guest uses the demo, places a light, and Generate asks them to create an account (no error toast). A page+// error fails the run.import fs from "node:fs";import path from "node:path";+import { fileURLToPath } from "node:url";import { DESKTOP, PHONE, launch, openRoute } from "./_browser.mjs";const argv = process.argv.slice(2);@@ -47,6 +53,9 @@ const markers = (page) =>});});const settle = (page) => page.waitForTimeout(250);+/** How magenta a pixel leans: red over green (blue light leaves it alone). */+const magenta = ([r, g]) => r - g;+const PHOTO = fileURLToPath(new URL("../../public/previews/presets/ba/1280/app-relight-before.jpg", import.meta.url));async function stageBox(page) {const s = page.locator('[data-testid="relight-stage"]');@@ -102,12 +111,18 @@ async function ownerRun(browser, name, device) {const png = fs.readFileSync(file);check(png.subarray(1, 4).toString() === "PNG" && png.readUInt32BE(16) === 1280 && png.readUInt32BE(20) === 960, `${name}: Download gives a 1280 x 960 PNG`);- // A look places its lights.+ // A look places its lights, and they reach the subject: Neon night turns the left cheek toward magenta.+ const cheek = [[0.535, 0.29]];+ await page.getByRole("radiogroup", { name: "Looks" }).getByRole("radio", { name: "Studio softbox" }).click();+ await settle(page);+ const [white] = await pixels(page, cheek);await page.getByRole("radiogroup", { name: "Looks" }).getByRole("radio", { name: "Neon night" }).click();await settle(page);const neon = await markers(page);check(neon.length === 2 && neon[0].color === "rgb(240, 40, 220)" && neon[1].color === "rgb(40, 96, 255)", `${name}: Neon night places magenta left and blue right`);check(neon[0].x < 0.35 && neon[1].x > 0.65, `${name}: its lights sit on their sides`);+ const [pink] = await pixels(page, cheek);+ check(magenta(pink) >= magenta(white) + 8, `${name}: Neon night's magenta reaches the left cheek (${white} → ${pink})`);// A tap on an empty spot adds a light there.await tapAt(page, device, 0.5, 0.15);@@ -127,6 +142,15 @@ async function ownerRun(browser, name, device) {check(diff(n0[0], n1[0]) > 6, `${name}: Teal changes the picture near the light (${diff(n0[0], n1[0])})`);check(diff(n0[1], n1[1]) <= 3, `${name}: the far corner stays the same (${diff(n0[1], n1[1])})`);+ // Three lights placed: a tap on the photo moves the selected one, and the side chips move it too.+ await tapAt(page, device, 0.8, 0.5);+ const moved = await markers(page);+ check(moved.length === 3 && Math.abs(moved[2].x - 0.8) < 0.02 && Math.abs(moved[2].y - 0.5) < 0.02, `${name}: with three lights a tap moves the selected one (${moved[2] ? `${moved[2].x.toFixed(3)}, ${moved[2].y.toFixed(3)}` : "none"})`);+ await page.getByRole("radiogroup", { name: "Side" }).getByRole("radio", { name: "Left" }).click();+ await settle(page);+ const left = (await markers(page))[2];+ check(Math.abs(left.x - 0.15) < 0.02 && Math.abs(left.y - 0.5) < 0.02, `${name}: the Left chip moves it to the left (${left.x.toFixed(3)})`);+if (!device.hasTouch) {// Desktop extras: the arrow keys move the selected light, Delete removes it.await page.locator('[data-testid="relight-stage"]').focus();@@ -155,6 +179,25 @@ async function ownerRun(browser, name, device) {check(await page.getByRole("button", { name: /Lit with these lights/ }).isVisible(), `${name}: the result comes back`);check(await page.getByRole("button", { name: "Keep", exact: true }).isVisible(), `${name}: Keep is offered to the owner`);await page.screenshot({ path: path.join(out, `${name}-generated.png`), fullPage: true });++ // Keep: kept at this Intensity; another Intensity is another keep.+ await page.getByRole("button", { name: "Keep", exact: true }).click();+ await page.getByRole("button", { name: "Kept", exact: true }).waitFor({ timeout: 20_000 }).catch(() => {});+ check(await page.getByRole("button", { name: "Kept", exact: true }).isDisabled(), `${name}: Keep keeps the blend`);+ await page.getByRole("radiogroup", { name: "Intensity" }).getByRole("radio", { name: "100 %" }).click();+ await settle(page);+ check(await page.getByRole("button", { name: "Keep", exact: true }).isEnabled(), `${name}: another Intensity can be kept too`);++ // An uploaded photo: its result is lined up with it (the owner's line counts the tiles).+ await page.locator('input[type="file"]').first().setInputFiles(PHOTO);+ await page.getByRole("button", { name: /Generate lighting/ }).last().waitFor({ timeout: 20_000 }).catch(() => {});+ await page.waitForFunction(() => !document.body.innerText.includes("Uploading…"), null, { timeout: 30_000 }).catch(() => {});+ await page.getByRole("button", { name: /Generate lighting|Generate again/ }).last().click();+ await page.getByRole("button", { name: /Lit with these lights/ }).waitFor({ timeout: 60_000 }).catch(() => {});+ await page.getByTestId("relight-owner-status").filter({ hasText: /tiles/ }).waitFor({ timeout: 20_000 }).catch(() => {});+ const line = await page.getByTestId("relight-owner-status").innerText();+ check(/\d+ tiles/.test(line), `${name}: a result on an uploaded photo is lined up (${line.trim()})`);+ await page.screenshot({ path: path.join(out, `${name}-uploaded.png`), fullPage: false });await ctx.close();}@@ -163,8 +206,17 @@ async function guestRun(browser, name, device) {const page = await ctx.newPage();page.on("pageerror", (e) => check(false, `${name}: no page error (${String(e.message).slice(0, 160)})`));await openRoute(page, `${guestApp}/apps/app-relight`);+ await page.waitForTimeout(2500);+ const over = await page.evaluate(() => document.documentElement.scrollWidth - document.documentElement.clientWidth);+ check(over <= 0, `${name}: no horizontal scroll (${over}px)`);+ if (!(await page.locator('[data-testid="relight-stage"]').count())) {+ // The tool isn't open to everyone yet: a guest gets the app's composer, as before.+ check(await page.getByText("Relight", { exact: true }).first().isVisible(), `${name}: a guest gets the Relight app's composer`);+ await page.screenshot({ path: path.join(out, `${name}-composer.png`) });+ await ctx.close();+ return;+ }await page.locator('[data-testid="relight-stage"] canvas').waitFor();- await page.waitForTimeout(1500);check(await page.getByRole("button", { name: /Lit with these lights/ }).isVisible(), `${name}: a guest sees the demo's result`);const before = await pixels(page, [[0.4, 0.4]]);await page.getByRole("radiogroup", { name: "Intensity" }).getByRole("radio", { name: "35 %" }).click();@@ -172,6 +224,7 @@ async function guestRun(browser, name, device) {check(diff(before[0], (await pixels(page, [[0.4, 0.4]]))[0]) > 2, `${name}: Intensity works for a guest`);await tapAt(page, device, 0.5, 0.12);check((await markers(page)).length === 3, `${name}: a guest places a light`);+ check(await page.getByTestId("lights-changed").getByRole("button", { name: "Generate", exact: true }).isVisible(), `${name}: a guest who hasn't generated is offered Generate, not Generate again`);await page.getByRole("button", { name: /Generate again|Generate lighting/ }).last().click();const prompt = page.getByText("Create a free account to run this");await prompt.waitFor({ timeout: 10_000 }).catch(() => {});diff --git a/tests/helpers/fake-comfy-runner.ts b/tests/helpers/fake-comfy-runner.tsindex c7a9f4c2..ce887491 100644--- a/tests/helpers/fake-comfy-runner.ts+++ b/tests/helpers/fake-comfy-runner.ts@@ -10,7 +10,8 @@* answers), `missing` (a file /prompt answers "not in list" for), `output` ("video" or "image"), `layers` (the* history lists that many Qwen-Image-Layered layers, node 60), `frames` (an EXR export: a preview clip, node 5, and* that many frames, node 3), `historyError` (/history answers HTTP 500 and then sends nothing), `uploadStatus` (the HTTP- * status /upload/image answers, e.g. 500 to fail every upload).+ * status /upload/image answers, e.g. 500 to fail every upload), `echo` (an image output is the last picture uploaded, so a+ * result lines up with its photo).* This file runs under plain Node too: only erasable TypeScript.*/import http from "node:http";@@ -29,6 +30,7 @@ export interface FakeComfyOptions {frames?: number;historyError?: boolean;uploadStatus?: number;+ echo?: boolean;}export interface FakeLogEntry {@@ -80,6 +82,7 @@ function uploadedBytes(body: Buffer, contentType: string): Buffer | undefined {export function startFakeComfy(opts: FakeComfyOptions = {}, port = 0): Promise<FakeComfy> {const log: FakeLogEntry[] = [];const jobs = new Map<string, number>();+ let lastUpload: Buffer | undefined;const server = http.createServer((req, res) => {const chunks: Buffer[] = [];req.on("data", (c: Buffer) => chunks.push(c));@@ -98,6 +101,7 @@ export function startFakeComfy(opts: FakeComfyOptions = {}, port = 0): Promise<Fif (p === "/object_info") return json(200, {});if (p === "/upload/image" && req.method === "POST") {entry.upload = uploadedBytes(body, req.headers["content-type"] ?? "");+ if (entry.upload?.length) lastUpload = entry.upload;if (opts.uploadStatus && opts.uploadStatus !== 200) return json(opts.uploadStatus, { error: "upload refused" });return json(200, { name: `fake_${log.length}.bin`, subfolder: "", type: "input" });}@@ -164,6 +168,11 @@ export function startFakeComfy(opts: FakeComfyOptions = {}, port = 0): Promise<Freturn res.end(Buffer.from("762f3101", "hex"));}const png = name.endsWith(".png");+ if (png && opts.echo && lastUpload) {+ const jpeg = lastUpload[0] === 0xff && lastUpload[1] === 0xd8;+ res.writeHead(200, { "content-type": jpeg ? "image/jpeg" : "image/png" });+ return res.end(lastUpload);+ }res.writeHead(200, { "content-type": png ? "image/png" : "video/mp4" });return res.end(png ? TINY_PNG : TINY_MP4);}@@ -189,7 +198,7 @@ export function startFakeComfy(opts: FakeComfyOptions = {}, port = 0): Promise<F});}-// Run on its own: node tests/helpers/fake-comfy-runner.ts --port 3341 [--loras none|a,b]+// Run on its own: node tests/helpers/fake-comfy-runner.ts --port 3341 [--loras none|a,b] [--output image] [--echo]if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) {const arg = (name: string) => {const i = process.argv.indexOf(`--${name}`);@@ -197,7 +206,7 @@ if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href)};const port = Number(arg("port") ?? 3341);const loras = arg("loras");- const fake = await startFakeComfy({ loras: !loras || loras === "none" ? [] : loras.split(","), delayMs: Number(arg("delay") ?? 1500), output: arg("output") === "image" ? "image" : "video" }, port);+ const fake = await startFakeComfy({ loras: !loras || loras === "none" ? [] : loras.split(","), delayMs: Number(arg("delay") ?? 1500), output: arg("output") === "image" ? "image" : "video", echo: process.argv.includes("--echo") }, port);console.log(`fake ComfyUI on ${fake.url}`);setInterval(() => {const last = fake.log.splice(0);diff --git a/tests/relight.test.ts b/tests/relight.test.tsindex dd67750f..b7ecfc6a 100644--- a/tests/relight.test.ts+++ b/tests/relight.test.ts@@ -1,4 +1,5 @@import fs from "node:fs";+import os from "node:os";import path from "node:path";import { createElement } from "react";import { renderToStaticMarkup } from "react-dom/server";@@ -12,9 +13,9 @@ import { parseIndex } from "@/lib/gpu/requirements";import type { RequirementIndex } from "@/lib/gpu/types";import { outputActions } from "@/lib/output-actions";import { alignFit, mapPx, WORK } from "@/lib/relight/align";-import { blendPlain, blendTransfer } from "@/lib/relight/blend";+import { blendPlain, blendTransfer, linearToSrgb8 } from "@/lib/relight/blend";import { DEFAULT_DEMO, RELIGHT_DEMOS } from "@/lib/relight/demo";-import { RELIGHT_MODEL, RELIGHT_SCENE_FEATURE, RELIGHT_SCENE_MODEL, RELIGHT_SETTINGS, relightRequest, sceneRequest } from "@/lib/relight/engine";+import { RELIGHT_MODEL, RELIGHT_SCENE_FEATURE, RELIGHT_SCENE_MODEL, RELIGHT_SETTINGS, RELIGHT_WORKFLOW, relightRequest, relightRunTitle, relightTitle, sceneRequest } from "@/lib/relight/engine";import { drawGuide } from "@/lib/relight/guide";import {BAND_CENTER,@@ -36,17 +37,22 @@ import {promptFor,relightExtraOf,relightPrompt,+ resultKey,sanitizeLights,seedFor,+ SIDE_CENTER,sideOf,SOFTNESSES,srgbToLinear,STRENGTHS,+ xForSide,yForHeight,type Light,} from "@/lib/relight/lights";-import { FRAGMENT, packLight, subjectDepthOf, uniforms, type StageState } from "@/lib/relight/shader";+import { FLAT_SUBJECT, FRAGMENT, LOW_SHORT, packLight, reachAt, subjectDepthOf, subjectOf, uniforms, type StageState, type Subject } from "@/lib/relight/shader";import { isHelperFeature } from "@/lib/library";+import { recordLocalGeneration } from "@/server/generations";+import { relightToolLive } from "@/server/relight";const NEGATION = /\b(no|not|never|nothing|none|without|don't|do not|doesn't|avoid|remove|removed)\b/i;const ROOT = path.join(__dirname, "..");@@ -129,6 +135,13 @@ describe("placing lights", () => {expect(sideOf(0.8)).toBe("right");});+ it("moves a light sideways with the side chips, keeping it where it is when it is on that side already", () => {+ expect(xForSide(0.2, "left")).toBe(0.2);+ expect(xForSide(0.2, "right")).toBe(SIDE_CENTER.right);+ expect(xForSide(0.9, "front")).toBe(SIDE_CENTER.front);+ for (const side of ["left", "front", "right"] as const) expect(sideOf(xForSide(0.5, side))).toBe(side);+ });+it("adds a light where tapped, up to three", () => {let ls: Light[] = [];for (const [x, y] of [@@ -191,7 +204,13 @@ describe("looks", () => {it("cover every lighting the old Relight app offered, so its runs reopen on a look", () => {const old = getPreset("app-relight")!.options!.find((o) => o.key === "light")!;- for (const c of old.choices) expect(lookFromLegacy(c.label), c.label).toBeDefined();+ for (const c of old.choices) {+ // A run stores the option's value; its label and words read back the same look.+ expect(lookFromLegacy(c.value, old.choices), c.value).toBeDefined();+ expect(lookFromLegacy(c.value, old.choices)).toBe(lookFromLegacy(c.label, old.choices));+ if (c.prompt) expect(lookFromLegacy(c.prompt, old.choices)).toBe(lookFromLegacy(c.label));+ }+ expect(lookFromLegacy("warm golden hour sunlight", old.choices)?.id).toBe("golden-hour");});});@@ -229,14 +248,78 @@ describe("the preview shader's values", () => {expect(FRAGMENT).toContain("uniform vec3 uPos[3]");});- it("put the light where it sits on the photo, with a reach that follows distance and softness", () => {- const p = packLight(light({ x: 0.25, y: 0.75 }), 2, 0.5);- expect(p.pos[0]).toBeCloseTo(0.5);- expect(p.pos[1]).toBeCloseTo(0.25);+ it("read a marker as the direction the light comes from, at a gap its distance sets, with its glow where it was placed", () => {+ const a = 2;+ const c = [FLAT_SUBJECT.x * a, FLAT_SUBJECT.y];+ for (const [x, y] of [+ [0.25, 0.75],+ [0.02, 0.5],+ [0.95, 0.1],+ ]) {+ const p = packLight(light({ x, y }), a, 0.5);+ expect(p.mark[0]).toBeCloseTo(x * a);+ expect(p.mark[1]).toBeCloseTo(1 - y);+ const dm = [p.mark[0] - c[0], p.mark[1] - c[1]];+ const dp = [p.pos[0] - c[0], p.pos[1] - c[1]];+ // Same direction from the subject…+ expect(dm[0] * dp[1] - dm[1] * dp[0]).toBeCloseTo(0);+ expect(dm[0] * dp[0] + dm[1] * dp[1]).toBeGreaterThan(0);+ }+ // …at a gap that grows with distance, whatever spot was tapped.+ const gap = (distance: Light["distance"]) => Math.hypot(packLight(light({ x: 0.02, distance }), a, 0.5).pos[0] - c[0], packLight(light({ x: 0.02, distance }), a, 0.5).pos[1] - c[1]);+ expect(gap("close")).toBeLessThan(gap("mid"));+ expect(gap("mid")).toBeLessThan(gap("far"));+ expect(gap("close")).toBeCloseTo(gap("close"));const close = packLight(light({ distance: "close", softness: "hard" }), 1, 0.5).params[1];const far = packLight(light({ distance: "far", softness: "diffuse" }), 1, 0.5).params[1];expect(far).toBeGreaterThan(close * 3);expect(packLight(light({ behind: true }), 1, 0.5).pos[2]).toBeLessThan(packLight(light(), 1, 0.5).pos[2]);+ // A marker on the subject brings its light round to the front, without a jump.+ const front = packLight(light({ x: FLAT_SUBJECT.x, y: 1 - FLAT_SUBJECT.y }), a, 0.5);+ expect(front.pos[0]).toBeCloseTo(c[0]);+ expect(front.pos[1]).toBeCloseTo(c[1]);+ });++ it("let every look's lights reach the subject: a quarter of each front light's power at its centre, flat or with a scene read", () => {+ const subjects: [string, Subject, number][] = [+ ["flat", FLAT_SUBJECT, 4 / 3],+ ["off-centre", { x: 0.62, y: 0.38, r: 0.3 }, 4 / 3],+ ["portrait frame", { x: 0.5, y: 0.5, r: 0.18 }, 3 / 4],+ ];+ for (const [name, subject, aspect] of subjects)+ for (const look of LOOKS)+ for (const l of lightsOfLook(look)) {+ if (l.behind) continue;+ const p = packLight(l, aspect, 0.5, subject);+ const at: [number, number, number] = [subject.x * aspect, subject.y, 0.5 * 0.6];+ expect(reachAt(p, at), `${look.id} ${l.id} ${name}`).toBeGreaterThanOrEqual(0.25);+ }+ // Neon night: the magenta light lights the subject's left side more than its right, the blue the other way.+ const [magenta, blue] = lightsOfLook(getLook("neon-night")!).map((l) => packLight(l, 4 / 3, 0.5));+ const left: [number, number, number] = [(FLAT_SUBJECT.x - 0.1) * (4 / 3), FLAT_SUBJECT.y, 0.3];+ const right: [number, number, number] = [(FLAT_SUBJECT.x + 0.1) * (4 / 3), FLAT_SUBJECT.y, 0.3];+ expect(reachAt(magenta, left)).toBeGreaterThan(reachAt(magenta, right));+ expect(reachAt(blue, right)).toBeGreaterThan(reachAt(blue, left));+ });++ it("find where the subject is from its cut-out", () => {+ const w = 40;+ const h = 30;+ const matte = new Uint8Array(w * h);+ for (let y = 5; y < 25; y++) for (let x = 20; x < 30; x++) matte[y * w + x] = 255;+ const s = subjectOf(matte, w, h)!;+ expect(s.x).toBeCloseTo(25 / 40);+ expect(s.y).toBeCloseTo(15 / 30);+ expect(s.r).toBeCloseTo(Math.sqrt((200 / 1200) * (40 / 30) / Math.PI));+ expect(subjectOf(new Uint8Array(w * h), w, h)).toBeNull();+ expect(uniforms(state({ scene: { hasScene: true, subjectDepth: 0.6, subject: s } })).arrays.uPos).not.toEqual(uniforms(state()).arrays.uPos);+ expect(uniforms(state()).arrays.uMark.slice(0, 2)).toEqual([0.2 * (4 / 3), 1 - 0.55].map((v) => expect.closeTo(v, 6)));+ });++ it("keep the result untouched: the highlight knee is the preview's own", () => {+ expect(FRAGMENT).toContain("outc = mix(P, knee(albedo * (uAmbient + C)), uIntensity);");+ expect(FRAGMENT).toContain("vec3 o = toSrgb(outc);");+ expect(FRAGMENT).not.toContain("toSrgb(knee(outc))");});it("find the subject's depth from the depth map and its matte", () => {@@ -307,7 +390,8 @@ describe("lining the relit picture up with the photo", () => {expect(Math.abs(mapPx(got.fit, "y", px) - (px - ty) / sy), `y ${ty} at ${px}`).toBeLessThan(0.5);}}- });+ // Four full fits on 512 px pictures: a few seconds on a busy machine.+ }, 30_000);it("gives up on a featureless picture (the blend then uses the pictures as they are)", () => {const flat = new Float32Array(WORK * WORK).fill(0.5);@@ -364,6 +448,148 @@ describe("the Intensity blend", () => {});});+describe("the light transfer on the GPU", () => {+ // The shader's maths on the CPU: each picture halved (2 × 2 averages, in sRGB as a canvas does) to LOW_SHORT on its+ // short side, then nine bilinear taps σ apart (the blur uniform), the ratio of the two blurs times the original.+ const W = 240;+ const H = 180;+ type Img = Float32Array; // sRGB 0..1, 3 per pixel+ const halve = (a: Img, w: number, h: number): [Img, number, number] => {+ const nw = Math.round(w / 2);+ const nh = Math.round(h / 2);+ const out = new Float32Array(nw * nh * 3);+ for (let y = 0; y < nh; y++)+ for (let x = 0; x < nw; x++)+ for (let c = 0; c < 3; c++) {+ let s = 0;+ for (const [dx, dy] of [+ [0, 0],+ [1, 0],+ [0, 1],+ [1, 1],+ ])+ s += a[(Math.min(h - 1, y * 2 + dy) * w + Math.min(w - 1, x * 2 + dx)) * 3 + c];+ out[(y * nw + x) * 3 + c] = s / 4;+ }+ return [out, nw, nh];+ };+ const resize = (a: Img, w: number, h: number, nw: number, nh: number): Img => {+ const out = new Float32Array(nw * nh * 3);+ for (let y = 0; y < nh; y++)+ for (let x = 0; x < nw; x++) {+ const v = sample(a, w, h, (x + 0.5) / nw, (y + 0.5) / nh);+ out.set(v, (y * nw + x) * 3);+ }+ return out;+ };+ const sample = (a: Img, w: number, h: number, u: number, v: number): [number, number, number] => {+ const fx = Math.min(w - 1, Math.max(0, u * w - 0.5));+ const fy = Math.min(h - 1, Math.max(0, v * h - 0.5));+ const x0 = Math.floor(fx);+ const y0 = Math.floor(fy);+ const x1 = Math.min(w - 1, x0 + 1);+ const y1 = Math.min(h - 1, y0 + 1);+ const tx = fx - x0;+ const ty = fy - y0;+ const at = (x: number, y: number, c: number) => a[(y * w + x) * 3 + c];+ return [0, 1, 2].map((c) => at(x0, y0, c) * (1 - tx) * (1 - ty) + at(x1, y0, c) * tx * (1 - ty) + at(x0, y1, c) * (1 - tx) * ty + at(x1, y1, c) * tx * ty) as [number, number, number];+ };+ const low = (a: Img): [Img, number, number] => {+ let [img, w, h] = [a, W, H];+ while (Math.min(w, h) >= LOW_SHORT * 2) [img, w, h] = halve(img, w, h);+ const s = LOW_SHORT / Math.min(w, h);+ if (s < 1) {+ const nw = Math.round(w * s);+ const nh = Math.round(h * s);+ return [resize(img, w, h, nw, nh), nw, nh];+ }+ return [img, w, h];+ };+ const toLin = (v: number) => srgbToLinear(v * 255);+ const shaderTransfer = (o: Img, r: Img, t: number): Uint8ClampedArray => {+ const [lo, lw, lh] = low(o);+ const [lr] = low(r);+ const blurS = (0.012 * Math.min(W, H)) / H;+ const ry = blurS;+ const rx = blurS / (W / H);+ const taps: [number, number, number][] = [+ [0, 0, 0.25],+ [rx, 0, 0.125],+ [-rx, 0, 0.125],+ [0, ry, 0.125],+ [0, -ry, 0.125],+ [rx, ry, 0.0625],+ [-rx, -ry, 0.0625],+ [rx, -ry, 0.0625],+ [-rx, ry, 0.0625],+ ];+ const out = new Uint8ClampedArray(W * H * 4);+ for (let y = 0; y < H; y++)+ for (let x = 0; x < W; x++) {+ const u = (x + 0.5) / W;+ const v = (y + 0.5) / H;+ const bo = [0, 0, 0];+ const br = [0, 0, 0];+ for (const [dx, dy, k] of taps) {+ const so = sample(lo, lw, lh, u + dx, v + dy);+ const sr = sample(lr, lw, lh, u + dx, v + dy);+ for (let c = 0; c < 3; c++) {+ bo[c] += toLin(so[c]) * k;+ br[c] += toLin(sr[c]) * k;+ }+ }+ for (let c = 0; c < 3; c++) {+ const ratio = Math.min(8, Math.max(0, br[c] / Math.max(bo[c], 0.004)));+ out[(y * W + x) * 4 + c] = linearToSrgb8(Math.min(1, toLin(o[(y * W + x) * 3 + c]) * (1 + (ratio - 1) * t)));+ }+ out[(y * W + x) * 4 + 3] = 255;+ }+ return out;+ };++ it("matches the CPU reference across a strong contour (a face against the sky), with no echo of the edge", () => {+ // The original: bright sky left of a dark face with fine texture. The relit picture: the same contour, warmer and+ // brighter on the face, and its edge a pixel softer (as a generated picture's is).+ const O = new Float32Array(W * H * 3);+ const R = new Float32Array(W * H * 3);+ for (let y = 0; y < H; y++)+ for (let x = 0; x < W; x++) {+ const face = x >= W / 2;+ const grain = ((x * 7 + y * 13) % 5) / 100;+ O.set(face ? [0.32 + grain, 0.24 + grain, 0.2 + grain] : [0.86, 0.9, 0.95], (y * W + x) * 3);+ const soft = Math.min(1, Math.max(0, (x - W / 2 + 1.5) / 3));+ const sky = [0.8, 0.82, 0.9];+ const lit = [0.62, 0.4, 0.26];+ R.set(sky.map((s, c) => s * (1 - soft) + lit[c] * soft), (y * W + x) * 3);+ }+ const to8 = (a: Img) => {+ const out = new Uint8ClampedArray(W * H * 4);+ for (let i = 0; i < W * H; i++) out.set([a[i * 3] * 255, a[i * 3 + 1] * 255, a[i * 3 + 2] * 255, 255], i * 4);+ return out;+ };+ const ref = blendTransfer(to8(O), to8(R), W, H, 0.6);+ const gpu = shaderTransfer(O, R, 0.6);+ let sum = 0;+ let worst = 0;+ for (let i = 0; i < W * H; i++)+ for (let c = 0; c < 3; c++) {+ const d = Math.abs(ref[i * 4 + c] - gpu[i * 4 + c]);+ sum += d;+ worst = Math.max(worst, d);+ }+ expect(sum / (W * H * 3)).toBeLessThan(1.5);+ expect(worst).toBeLessThan(24);+ // Along a row on the face, the light the blend adds (result over original, in linear light) changes smoothly:+ // no copy of the contour a tap's width away from it.+ const row = H / 2;+ const light = (x: number) => srgbToLinear(gpu[(row * W + x) * 4]) / toLin(O[(row * W + x) * 3]);+ let step = 0;+ // (The blend's own transition across the contour spans a couple of blurs; past that the light is even.)+ for (let x = W / 2 + 4 * Math.ceil(0.012 * Math.min(W, H)); x < W - 2; x++) step = Math.max(step, Math.abs(light(x + 1) - light(x)));+ expect(step).toBeLessThan(0.06);+ });+});+describe("the light-guide picture", () => {it("is the same pixels for the same rig and photo, and shows each light in its colour", () => {const W = 64;@@ -395,6 +621,19 @@ describe("the runs", () => {expect(relightExtraOf(req.params?.extra)).toMatchObject({ lights, look: "neon-night", variant: RELIGHT_SETTINGS.variant, guide: false });expect(seedFor("a")).toBe(seedFor("a"));expect(seedFor("a")).not.toBe(seedFor("b"));+ // The Library names it by its look, else by its lights: the server sets it (the API takes no title from a client).+ expect(req.title).toBeUndefined();+ expect(relightRunTitle(req)).toBe("Relight · Neon night");+ expect(relightRunTitle({ ...req, modelId: "oss-qwen-relight" })).toBeUndefined();+ expect(relightRunTitle({ ...req, params: {} })).toBeUndefined();+ expect(relightTitle([lights[0]])).toBe("Relight · 1 light");+ expect(relightTitle(lights)).toBe("Relight · 2 lights");+ });++ it("a result is found again by its words, whichever seed made it", () => {+ const k = (seed: number) => resultKey({ prompt: "p", variant: "viggle-6", guide: false, ...({ seed } as object) });+ expect(k(1)).toBe(k(2));+ expect(resultKey({ prompt: "p", variant: "viggle-6" })).not.toBe(resultKey({ prompt: "q", variant: "viggle-6" }));});it("the scene read is a helper step the Library leaves out", () => {@@ -433,6 +672,12 @@ describe("the runs", () => {);expect(c.bash).not.toContain("git clone");});++ it("the browser's own results are recorded only for their own step", () => {+ const blend = { feature: "relight", modelId: "local-relight", prompt: "p", inputs: { images: ["/api/files/x.png"] }, output: { url: "/api/files/y.png", kind: "image" as const } };+ expect(() => recordLocalGeneration({ ...blend, op: "grade" })).toThrow("Not a browser tool");+ expect(() => recordLocalGeneration({ ...blend, modelId: "local-color-grade", op: "relight" })).toThrow("Not a browser tool");+ });});describe("where Relight lives", () => {@@ -441,15 +686,33 @@ describe("where Relight lives", () => {expect(app).toMatchObject({ tool: "relight", name: "Relight", open: { modelId: "oss-qwen-relight", op: "edit" } });expect(app.options?.map((o) => o.key)).toEqual(["light", "dir"]);const page = fs.readFileSync(path.join(ROOT, "src/app/(studio)/apps/[id]/page.tsx"), "utf8");- expect(page).toMatch(/preset\.tool === "relight"\) return <RelightTool/);+ expect(page).toMatch(/preset\.tool === "relight"\)\s*return \(\s*<RelightGate live=\{relightToolLive\(\)\}/);+ });++ it("opens the tool to everyone once its workflow has passed its check, and keeps the composer until then", () => {+ const dir = fs.mkdtempSync(path.join(os.tmpdir(), "fuobe-relight-live-"));+ const write = (validated: boolean) => {+ const f = path.join(dir, `m-${validated}.json`);+ fs.writeFileSync(f, JSON.stringify({ workflows: [{ id: RELIGHT_WORKFLOW, validated }, { id: "relight-scene-read", validated: true }] }));+ return f;+ };+ expect(relightToolLive(write(false))).toBe(false);+ expect(relightToolLive(write(true))).toBe(true);+ expect(relightToolLive(path.join(dir, "missing.json"))).toBe(false);+ expect(getModel(RELIGHT_MODEL)?.routes[0].endpoint).toBe(RELIGHT_WORKFLOW);+ const gate = fs.readFileSync(path.join(ROOT, "src/components/relight/relight-gate.tsx"), "utf8");+ expect(gate).toContain("return live || owner ? <RelightTool app={app} /> : <>{children}</>;");});it("opens on a demo with its result shipped", () => {expect(RELIGHT_DEMOS.length).toBeGreaterThan(0);for (const d of RELIGHT_DEMOS) {- for (const f of [d.photo, d.relit, d.depth, d.matte].filter(Boolean) as string[]) expect(fs.existsSync(path.join(ROOT, "public", f)), f).toBe(true);+ for (const f of [d.photo, d.relit, d.depth, d.matte].filter(Boolean) as string[]) expect(fs.existsSync(path.join(ROOT, "public", f.split("?")[0])), f).toBe(true);expect(getLook(d.look)).toBeDefined();}+ // The cover pair's content version, as Home's slider uses: a new pair gets new addresses.+ expect(DEFAULT_DEMO.photo).toMatch(/app-relight-before\.jpg\?v=[0-9a-f]{8}$/);+ expect(DEFAULT_DEMO.relit).toMatch(/app-relight-after\.jpg\?v=[0-9a-f]{8}$/);expect(DEFAULT_DEMO.look).toBe("golden-hour");});@@ -476,7 +739,15 @@ describe("the panel", () => {const panel = renderToStaticMarkup(createElement(LightPanel, { lights: lightsOfLook(getLook("neon-night")!), selected: "l1", onSelect: () => {}, onChange: () => {}, onRemove: () => {}, onAdd: () => {}, fine: false }),);- for (const label of ["Colour", "Height", "Distance", "Softness", "Strength", "Behind the subject", "Remove light", "Add light", "Custom"]) expect(panel).toContain(label);+ for (const label of ["Colour", "Side", "Left", "Front", "Right", "Height", "Distance", "Softness", "Strength", "Behind the subject", "Remove light", "Add light", "Custom"]) expect(panel).toContain(label);+ // Neon night's left light: the Left chip is on.+ expect(panel).toMatch(/role="radiogroup" aria-label="Side".*?aria-checked="true"[^>]*>Left</);+ // A look's own colour (off the chips) shows on the Custom chip without marking it picked.+ const candle = renderToStaticMarkup(+ createElement(LightPanel, { lights: lightsOfLook(getLook("candlelight")!), selected: "l1", onSelect: () => {}, onChange: () => {}, onRemove: () => {}, onAdd: () => {}, fine: false }),+ );+ expect(candle).toContain("background:#ffa040");+ expect(candle).not.toContain("bg-foreground text-background\">Custom");expect(panel).toContain("h-11");expect(panel).not.toMatch(/Viggle|Qwen|LoRA|seed|steps/i);});@@ -487,7 +758,7 @@ describe("Workflows → Copy install commands for Relight", () => {const { hfNodeFile, nodeInstall } = await import("@/lib/comfy-install");const url = "https://huggingface.co/Viggle/Qwen-Image-2.1-viggle-turbo/resolve/009a44a895ef85f7e643c80fdca9543795248867/comfyui/viggle_turbo.py";expect(hfNodeFile(url)).toEqual({ repo: "https://huggingface.co/Viggle/Qwen-Image-2.1-viggle-turbo", ref: "009a44a895ef85f7e643c80fdca9543795248867", file: "comfyui/viggle_turbo.py" });- expect(nodeInstall({ name: "viggle_turbo", repo: url })).toBe(`mkdir -p "$COMFYUI/custom_nodes/viggle_turbo" && wget -c -O "$COMFYUI/custom_nodes/viggle_turbo/__init__.py" "${url}"`);+ expect(nodeInstall({ name: "viggle_turbo", repo: url })).toBe(`mkdir -p "$COMFYUI/custom_nodes/viggle_turbo" && wget -q -O "$COMFYUI/custom_nodes/viggle_turbo/__init__.py" "${url}"`);expect(hfNodeFile("https://huggingface.co/Viggle/x/resolve/main/a.py")).toBeUndefined();});});