Skip to contents

Resize images and templates to the specified width and height.

Usage

resize(stimuli, width = NULL, height = NULL)

Arguments

stimuli

list of stimuli

width, height

new dimensions (in pixels or percent if < 10)

Value

list of stimuli with resized tems and/or images

See also

Stimulus manipulation functions align(), crop_tem(), crop(), greyscale(), horiz_eyes(), image_func(), mask_oval(), mask(), mirror(), pad(), rotate(), to_size()

Examples

stimuli <- demo_stim()

# set width to proportion, height proportional
resize(stimuli, .5) |> draw_tem()


# set width and height separately by pixels
resize(stimuli, 400, 250) |> draw_tem()