Camera Settings to Prompt Words
Turn aperture, shutter speed and ISO into the plain words an image model understands.
AI prompt
Photograph of a cyclist crossing a city bridge at dusk, shot at a wide aperture for shallow depth of field and a creamy blurred background, slow shutter that blurs the traffic lights into streaks while the rider stays sharp, high ISO with visible film grain, moody blue hour light. Show a three-column explanation of aperture, shutter and ISO with the words used in the prompt. Negative: text errors, watermarks, extra riders. Reduced motion: still image.About this pattern
Definition
Image models learn from captions, so they respond better to descriptions than to numbers. Telling the model f/1.8 may do little, while shallow depth of field with a soft blurred background works. This translator maps each camera setting to the visual result and the words that describe it.
When to use it
- Aperture: wide opening becomes shallow depth of field and creamy background blur; narrow becomes everything in focus.
- Shutter: fast means frozen action; slow means motion blur or light trails.
- ISO: low means clean; high means visible grain and a gritty mood.
- Use the words in the prompt, and a number only as a hint.
What the controls do
- Three sliders for aperture, shutter and ISO; the words and a prompt line are updated.
Motion & timing
- The text updates live.
- Reduced motion: nothing animates.
Tips & variations
- Do not stack contradictory words such as frozen action and long exposure blur.
- Test one change at a time to see what the model does with it.
Code of this live preview
<div class="bx"><label class="rw">Aperture <b id="av"></b><input id="ap" type="range" min="0" max="4" value="1"></label><label class="rw">Shutter <b id="sv"></b><input id="sh" type="range" min="0" max="4" value="2"></label><label class="rw">ISO <b id="iv"></b><input id="is" type="range" min="0" max="4" value="1"></label><p class="pr" id="pr"></p></div>:root{--bg:#F1F1EF;--surface:#fff;--surface-2:#F7F7F5;--line:#E0E0DC;--text:#171717;--muted:#6f6f6f;--accent:#171717;--accent-ink:#fff;--danger:#d92d20}
*{box-sizing:border-box;margin:0}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}a{color:inherit;text-decoration:none}ul,ol,p,h4{margin:0;padding:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pre{display:flex;gap:5px;flex-wrap:wrap}.pre button{height:28px;padding:0 11px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:11px;cursor:pointer}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.bx{width:min(330px,100%);display:grid;gap:9px}.rw{display:grid;gap:3px;font-size:11.5px;color:var(--muted)}.rw b{color:var(--text);font-weight:600}input[type=range]{width:100%;accent-color:#171717}
.out{font-size:12px;color:var(--muted);line-height:1.4}.out b{color:var(--text)}
button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.pr{font-size:12.5px;line-height:1.55;background:var(--pv);border-radius:10px;padding:8px 10px;margin:0}.pr b{background:#ffe28a;font-weight:500;padding:0 3px;border-radius:3px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}const AP=[['f/1.4','very shallow depth of field, creamy blurred background'],['f/2.8','shallow depth of field, soft background'],['f/5.6','moderate depth of field'],['f/11','deep focus, sharp front to back'],['f/22','everything crisp, starburst highlights']],SH=[['1/2000 s','frozen action, crisp motion'],['1/250 s','sharp, natural motion'],['1/30 s','slight motion blur'],['1 s','smooth motion blur, light streaks'],['30 s','long exposure light trails, silky water']],IS=[['ISO 100','clean, noise-free'],['ISO 400','clean with a hint of texture'],['ISO 1600','visible grain'],['ISO 6400','gritty, heavy grain'],['ISO 25600','very noisy, raw documentary look']];
const g=id=>document.getElementById(id);
function up(){const a=AP[+g('ap').value],s=SH[+g('sh').value],i=IS[+g('is').value];g('av').textContent=a[0];g('sv').textContent=s[0];g('iv').textContent=i[0];g('pr').innerHTML='A cyclist crossing a bridge at dusk, <b>'+a[1]+'</b>, <b>'+s[1]+'</b>, <b>'+i[1]+'</b>.'+(+g('sh').value>=3&&+g('ap').value<=1?' <i>Note: very bright settings may overexpose; real cameras would need an ND filter.</i>':'');}
['ap','sh','is'].forEach(k=>g(k).addEventListener('input',up));up();One complete HTML file. Save it and open it in a browser.
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Camera Settings to Prompt Words — demo</title>
<style>
:root{--bg:#F1F1EF;--surface:#fff;--surface-2:#F7F7F5;--line:#E0E0DC;--text:#171717;--muted:#6f6f6f;--accent:#171717;--accent-ink:#fff;--danger:#d92d20}
*{box-sizing:border-box;margin:0}
html,body{height:100%}body{background:var(--bg);color:var(--text);font:15px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',Inter,Roboto,sans-serif;-webkit-font-smoothing:antialiased}.stage{min-height:100%;display:grid;place-items:center;padding:24px}button,input,select,textarea{font-family:inherit}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}a{color:inherit;text-decoration:none}ul,ol,p,h4{margin:0;padding:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pre{display:flex;gap:5px;flex-wrap:wrap}.pre button{height:28px;padding:0 11px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:11px;cursor:pointer}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.bx{width:min(330px,100%);display:grid;gap:9px}.rw{display:grid;gap:3px;font-size:11.5px;color:var(--muted)}.rw b{color:var(--text);font-weight:600}input[type=range]{width:100%;accent-color:#171717}
.out{font-size:12px;color:var(--muted);line-height:1.4}.out b{color:var(--text)}
button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.pr{font-size:12.5px;line-height:1.55;background:var(--pv);border-radius:10px;padding:8px 10px;margin:0}.pr b{background:#ffe28a;font-weight:500;padding:0 3px;border-radius:3px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
</style></head>
<body><div class="stage">
<div class="bx"><label class="rw">Aperture <b id="av"></b><input id="ap" type="range" min="0" max="4" value="1"></label><label class="rw">Shutter <b id="sv"></b><input id="sh" type="range" min="0" max="4" value="2"></label><label class="rw">ISO <b id="iv"></b><input id="is" type="range" min="0" max="4" value="1"></label><p class="pr" id="pr"></p></div>
</div>
<script>
const AP=[['f/1.4','very shallow depth of field, creamy blurred background'],['f/2.8','shallow depth of field, soft background'],['f/5.6','moderate depth of field'],['f/11','deep focus, sharp front to back'],['f/22','everything crisp, starburst highlights']],SH=[['1/2000 s','frozen action, crisp motion'],['1/250 s','sharp, natural motion'],['1/30 s','slight motion blur'],['1 s','smooth motion blur, light streaks'],['30 s','long exposure light trails, silky water']],IS=[['ISO 100','clean, noise-free'],['ISO 400','clean with a hint of texture'],['ISO 1600','visible grain'],['ISO 6400','gritty, heavy grain'],['ISO 25600','very noisy, raw documentary look']];
const g=id=>document.getElementById(id);
function up(){const a=AP[+g('ap').value],s=SH[+g('sh').value],i=IS[+g('is').value];g('av').textContent=a[0];g('sv').textContent=s[0];g('iv').textContent=i[0];g('pr').innerHTML='A cyclist crossing a bridge at dusk, <b>'+a[1]+'</b>, <b>'+s[1]+'</b>, <b>'+i[1]+'</b>.'+(+g('sh').value>=3&&+g('ap').value<=1?' <i>Note: very bright settings may overexpose; real cameras would need an ND filter.</i>':'');}
['ap','sh','is'].forEach(k=>g(k).addEventListener('input',up));up();
</script>
</body></html>