Prompt craft

Lighting, Framing & Composition in Prompts

How light direction, shadow contrast, camera viewpoint, and target aspect-ratio cropping shape images—including preserved mug outputs and derived ratio crops.

Published by TextToImage Studio Updated 3 December 2026, rewritten 9 min read

Naming a subject tells the image generator what exists in the scene; naming the light and framing tells it how surfaces separate from backgrounds, where shadows land, and whether the subject survives cropping for your page layout. Think of these terms as visual directions rather than calibrated optical camera settings.

What to keep separate
  • Diffusion models imitate visual clichés associated with lighting and lens words—they do not compute physically accurate ray-traced optics or exact focal lengths.
  • Presets add wording about lighting and depth behind the scenes (photorealistic appends shallow depth of field; concept-art appends dramatic lighting); we cannot see what the provider does with that wording.
  • Requested resolution (up to 1024x1024, 1024x768, or 768x1024) can differ from returned pixels, so check how framing survives cropping afterward.

Why name lighting and viewpoint in a prompt

The advice in this section is general photographic practice, not a test result: the only lighting tests on this page are the two mug pairs further down, and neither isolates the lighting words. Naming a direction (sidelight from a window), a quality (hard direct sun vs. soft overcast sky), and a viewpoint (eye-level closeup vs. overhead view) can introduce tonal contrast, ground shadows that anchor floating objects, and clearer separation between foreground and background.

Light direction and what it highlights

Direction phrase (illustrative) Typical visual effect in photographs & renders (general convention, not tested here) Trade-off to inspect after generation
front light / even diffuse light Low shadow contrast across the front surface; clear colour visibility. Can flatten rounded shapes or look sterile without subtle side falloff.
side light from a left window Bright highlight on one side, graduated shadow across curved objects, long table shadows. Deep shadows on the far side can obscure dark textures or faces.
backlit / rim light from behind Glowing outline along handles, rims, hair, or foliage; silhouetted front. Strong glare or bloom can wash out fine details and surface lettering.
overhead light / skylight Short dark shadows tucked directly under brims, noses, and overhanging edges. Harsh overhead bulbs cast heavy eye sockets on human portraits.

Hard vs. soft light and colour contrast

Hard light comes from a small or unobstructed source (midday sun through window slats, bare tungsten bulb). It draws crisp shadow edges and sharp specular highlights on glaze, glass, or metal. Soft light comes from a wide or diffused source (overcast clouds, sheer curtain, bounce wall), turning shadows into gentle gradients that reduce harsh texture.

Remember preset interactions inside this app: if you set Art Style to Photorealistic, the tool appends photo taken on Sony A7R, 85mm lens, shallow depth of field, plus photorealistic and ultra sharp wording. On 2 December 2026 we recorded four Photorealistic captures by script to the endpoint Neural Cloud uses (a ramen bowl, a rainy street and a valley at two seeds). For each scene we also recorded one control picture: the same prompt at Default style with 14 words describing a calm, friendly mood added where the preset's words would go. The ramen and street backgrounds came out blurred, and the valley's nearest flowers went soft although its prompt asked for sharp focus. The ramen control picture also had a soft background, though, while the street and valley control pictures did not, so the evidence is mixed: we cannot tell whether the preset's own words or any added words caused the blur. Choose Default style if you want to set depth of field with your own wording (untested suggestion; our two valley captures of 2 December 2026 at plain Default style, with no words added, whose prompt asked for sharp focus, showed distinct nearest flowers).

A lighting revision: two real outputs

On 15 November 2026, we submitted these two prompts through TextToImage Studio. Both used the Photorealistic preset, 1 Image, a requested size of 1024x1024, and a random seed, without Enhance prompt. The displayed engine was Neural Cloud, and both requests returned from Neural Cloud (full record.json). The exact upstream model was not independently verified.

Recorded morning output: two off-white ceramic mugs on a slatted wooden table beside a blurred window with soft window glow and provider watermark
Baseline — soft morning light (morning.jpg · 3.859s): A ceramic mug on a wooden table beside a window, soft morning light. Output is 768×768 JPEG showing two mugs, blurred window background, diagonal shadows across wooden slats, and a visible watermark.
Recorded afternoon output: one cream ceramic mug right-of-center on a sunlit round wooden table casting striped shadows, with provider watermark
Revision — hard afternoon sunlight (afternoon.jpg · 3.522s): A ceramic mug on a wooden table beside a window, hard afternoon sunlight with a long shadow. Output is 768×768 JPEG showing one mug, high-contrast sunlight bands, and a dark diagonal cast shadow.

What this observed comparison establishes (and its limits)

  • Naming a harder light source plus cast shadow (hard afternoon sunlight with a long shadow) corresponded to noticeably higher directional contrast and striped sunlight bands in afternoon.jpg compared with the diffused background glow in morning.jpg.
  • Each prompt was executed once with a different random seed. Notice the mug count dropped from two to one even though the noun phrase A ceramic mug did not change, and both outputs arrived at 768x768 despite asking for 1024x1024. Treat this pair as a documented example of inspection rather than proof that those exact words always produce one mug or fixed shadow angles.

Lighting comparison at fixed seed (424242)

To reduce random seed variation, on 18 November 2026 we sent one pair by script (not through the studio interface) to the endpoint Neural Cloud uses, holding the seed constant at 424242. Changed words can still change the scene at a fixed seed, so one pair cannot isolate the lighting clause (view comparison record.json):

Lighting baseline (prompt wording: soft morning light) showing a white mug with a dark handle on a wooden table crossed by diagonal bands of sunlight and shadow, with a blurred window behind, and a provider corner mark at lower right
Baseline — soft morning light (morning-photorealistic.jpg · seed 424242 · 768×768 JPEG): A ceramic mug on a wooden table beside a window, soft morning light. Diagonal bands of sunlight and shadow cross the tabletop, and the window behind is blurred.
Lighting revision with hard afternoon sunlight showing a mug with its front face in shade and a dark shadow patch on the table beside it, and a provider corner mark at lower right
Revision — hard afternoon sunlight (afternoon-photorealistic.jpg · seed 424242 · 768×768 JPEG): A ceramic mug on a wooden table beside a window, hard afternoon sunlight with a long shadow. Shows a mug in about the same place and size, though its width, rim, handle and the window behind it also differ; its front face is in shade, with a dark shadow patch on the table beside the base.

Composition, aspect ratio, colour balance and cropping

Composition decides where the subject sits inside the frame and how much breathing room surrounds it. In TextToImage Studio, Settings offers five aspect-ratio requests: square (512x512, 768x768, 1024x1024), landscape 4:3 (1024x768), and portrait 3:4 (768x1024)—no ultra-wide 16:9 or tall 9:16 button exists natively. That means web banners, blog headers, and tall social posts may need to be cropped from a returned square or 4:3 file.

How 768×768 geometry behaves under different target crops

The diagram below sketches a rule-of-thirds grid plus two practical destination frames on a square like afternoon.jpg (768×768); frame positions are approximate. Two real crops exported from that file follow.

Square source (768×768) Mug sits slightly right of center 16:9 crop (768×432) Mug + handle kept (approx.) 4:5 crop (480×600) Window panes kept (approx.) Bottom-right badge zone Keep subjects clear of corners
Original layout diagram: Schematic comparison showing roughly how target crop rectangles intersect a square output when the primary object is offset right; the published crops below sit at different offsets (the 16:9 crop starts about 130 px lower than the drawn band) so that the provider's mark stays in frame.
Derived crops vs. new AI generations

The two JPEGs below are geometric crops derived directly from afternoon.jpg using image editing tooling—they are not new AI generations from the studio. Always keep the original full output and verify provider attribution terms before cropping or publishing.

Derived 16:9 crop (768x432) of afternoon.jpg showing a white ceramic mug whose rim is clipped at the top edge of the frame, a sunlit wooden table to the left and the provider corner mark at lower right
Derived 16:9 horizontal crop (768×432, vertical offset): Keeps the sunlit table space on the left and the provider's corner mark in frame, while trimming the window frames and clipping the top of the mug's rim.
Derived 4:5 vertical crop (480x600) of afternoon.jpg showing the whole white mug against a blurred green window, with the provider corner mark at lower right
Derived 4:5 portrait crop (480×600): Retains window light above the mug and keeps the provider's corner mark in frame, but loses the sunlit left negative space.

Subject placement, negative space, and colour discipline

  • Leave margin when cropping is needed: If you intend to crop a square generation to 16:9 or overlay UI text beside it, include plain space in the prompt (for example "small mug positioned right of center, clear sunlit wood grain occupying the left half of the table" — untested suggestion). Center-tight close-ups can clip rims or handles during wide crops.
  • Limit named colours to two or three roles: Rather than naming five competing bright colours (which can bleed between garments, backgrounds, and props), assign a quiet neutral backdrop plus one accent (e.g., "pale sage wall, matte cream ceramic plate, three dark-blue plums" — untested suggestion).

Shot sizes and camera angles (mostly untested prompt vocabulary)

Scope note

The framing terms below are standard photography/illustration cues used in prompts; apart from the mug runs on this page (15 and 18 November 2026), exact outcomes on any given provider run have not been benchmarked here.

Framing cue Intended crop / viewpoint Where it breaks down
macro close-up Surface texture, object rim, product clasp, drops or weave. Removes surrounding room context.
medium tabletop / waist-up shot Subject plus immediate surface and background cue. Cropping later to extreme landscape or portrait can clip hands or handles.
wide environmental shot Shows furniture, architecture, weather, and spacious margins. Small faces and fine text degrade sharply at 768px–1024px resolution.
overhead flat-lay / top-down view Plates, stationery, maps, and tidy tabletop grids. Tall glasses or mugs lose handle recognition when viewed strictly from 90°.
low angle (shot from below, looking up) Makes buildings or standing figures feel taller against the sky. Can exaggerate hand/foot foreshortening near lens edges.

Observed framing modifiers: Close-Up vs. Wide Shot (seed 424242)

To see how framing prefixes behave, on 18 November 2026 we sent two requests by script (not through the studio interface) to the endpoint Neural Cloud uses, at fixed seed 424242 with the Photorealistic preset; the baseline in the lighting comparison earlier on this page (morning-photorealistic.jpg) is the same prompt without a prefix (view comparison record.json):

Recorded output with Close-up prefix showing the ceramic mug in the same place as in the baseline, with a darker overall tone and a larger foreground shadow, and a provider corner mark at lower right
Close-up prefix (closeup-photorealistic.jpg · seed 424242 · 768×768 JPEG): Close-up of a ceramic mug on a wooden table beside a window, soft morning light. The mug sits in the same place and at about the same size as in morning-photorealistic.jpg, the baseline in the lighting comparison earlier on this page; the picture is darker overall, with a larger shadow across the foreground, and there is no macro crop.
Recorded output with Wide shot prefix showing nearly the same framing as the baseline, with a pale blue-grey handle, and a provider corner mark at lower right
Wide shot prefix (wide-photorealistic.jpg · seed 424242 · 768×768 JPEG): Wide shot of a ceramic mug on a wooden table beside a window, soft morning light. Nearly the same framing as morning-photorealistic.jpg (the baseline in the lighting comparison earlier on this page), with a paler blue-grey handle; still a tabletop still life.

A guess about why the two framing tags did little: In our two requests on 18 November 2026 (seed 424242) we did not name broader room elements (such as showing the entire kitchen counter, sink, and dining room behind), and the short camera tags Wide shot and Close-up produced only modest adjustments, which cannot show why. One guess is that the model's subject prior stays tightly bounded around the mug, so naming room elements might help (untested suggestion).

Lighting and composition questions

Why doesn't TextToImage Studio include a 16:9 resolution dropdown option?
The generator dropdown intentionally limits requested sizes to 512×512, 768×768, 1024×1024, 1024×768, and 768×1024. Request 1024x768 or 1024x1024, leave space around the subject, check actual pixels in the Lightbox, and crop downward to 16:9 afterward.

Can a prompt force an exact 70-30 colour palette?
No, as far as we know; we have not tested a request for a colour split such as 70-30. Our guess (untested) is that describing light tone and background material biases pixels toward those colours, while lighting reflections, preset tags, and random seeds still shift saturation and shadow hue.

Does asking for "Sony A7R 85mm" replicate real optical depth?
No. It acts as a stylistic photograph cue already embedded inside the Photorealistic preset. In four Photorealistic captures on 2 December 2026 the ramen and street backgrounds came out blurred, and the nearest flowers of a valley whose prompt asked for sharp focus went soft. But one of three control pictures, made with mood words instead of the preset's words, also had a soft ramen background, so we cannot tell whether the camera words or any added words caused the blur. The camera words are prompt text, not a true f-stop calculation.