Skip to content

stimSize

Experiments

Controls the displayed size of stimuli. For image trials it resizes the stim1..stimN images; for video trials it resizes the video; for word trials it sets the font size of the word stimuli.

Put a percentage in the cell and every stimulus on the trial is scaled by it: 80% shows each stimulus at 80% of its natural size.

To size the stimuli individually, write one spec per stimulus separated by ;: the first applies to stim1, the second to stim2, and so on. A single spec applies to every stimulus slot.

On image and video trials a spec must take one of these forms exactly:

FormMeaning
N%scale natural width and height by N/100
N (single integer)fixed width N px, height scaled proportionally
W H (two integers)fixed width W px and height H px, aspect ratio not preserved
max W Hscale DOWN proportionally to fit inside a W x H box, only when natural width > W or natural height > H; never upscales
max Wscale DOWN proportionally when natural width > W; never upscales

On word trials the spec is a plain number, read as a percentage of the base font size (2em): 100 gives 2em, 50 gives 1em, 200 gives 4em.

ValueTrial typeEffect
emptyanynatural size (images: their own size, adjusted to the participant’s screen); words: 2em font
integer Nwordfont size (2*N/100)em on all word stimuli
W Himage/videoexact pixel width and height
max W Himage/videoproportional shrink-to-fit W x H
max Wimage/videoproportional shrink when wider than W
N%image/videomultiply natural dimensions by N/100
Nimage/videowidth N px, proportional height
anything elseimage/videonot recognized, slot falls back to natural size
anything non-numeric, or 0wordfalls back to 2em

Units are implicit pixels. Suffixes like px and keywords (small, large, full) are NOT accepted and are ignored.

When the column is absent or the cell is left blank, images render at their own size and words at the 2em base font size.

An empty stimulus slot stays empty whatever size you set: it is never given a size of its own.

  • stimPos and layout: the sizes you set here decide how much room each stimulus takes, so they drive both the automatic row layout and stimPos block layout.
  • target and mask are NOT affected: they always display at their natural size, whatever stimSize says.
  • Video: only the first spec is applied, and only when the cell is not empty.
  • Audio: stimSize never applies to audio.
  • Word trials: only the first spec is read, and it applies to all the word stimuli; per-stimulus word sizes are not supported. The target word does not take this font size.
typestimFormatstim1stim2stimSize
test.jpgface1face2max 400 400

Both images are shrunk proportionally so neither exceeds 400 x 400; smaller images stay natural size.

typestimFormatstim1stim2stim3stimSize
test.pngabc50%;100%;200 150

stim1 at half its natural size, stim2 natural, stim3 forced to exactly 200 x 150 px.

typestimFormatstim1stim2stimSize
testwordAPPLEPEAR150

Word trial: all word stimuli rendered at 3em (150% of the 2em base).

typestimFormatstim1stimSize
test.jpgphoto80%

The overwhelmingly most common real-world form: a single N% scaling spec applied to every stimulus slot (80% alone accounts for the majority of all observed stimSize cells). Percentage scaling dominates real files; explicit pixel pairs (250 350) and max forms are rare.

  • max forms only ever shrink a stimulus, never enlarge it.
  • On word trials, everything after the first ; spec is silently ignored.
  • An invalid spec in a multi-spec list only disables sizing for that slot; the other slots are still sized.
  • A spec of 0 on an image or video trial gives a width of 0, so nothing is visible; on a word trial 0 falls back to the 2em default.