labvanced logoLabVanced
  • Research
    • Publications
    • Researcher Interviews
    • Use Cases
      • Behavioral Psychology
      • Personality & Social Psychology
      • Cognitive & Neuro Psychology
      • Developmental & Educational Psychology
      • Clinical & Health Psychology
      • Sports & Movement Psychology
      • Marketing & Consumer Psychology
    • Labvanced Blog
  • Technology
    • Feature Overview
    • Desktop App
    • Phone App
    • Precise Timing
    • Experimental Control
    • Eye Tracking
    • Multi User Studies
    • More ...
      • Questionnaires
      • Artificial Intelligence (AI) Integration
      • Mouse Tracking
      • Data Privacy & Security
  • Learn
    • Guide
    • Videos
    • Walkthroughs
    • FAQ
    • Release Notes
    • Documents
    • Classroom
  • Experiments
    • Public Experiment Library
    • Labvanced Sample Studies
  • Pricing
    • Pricing Overview
    • License Configurator
    • Single License
    • Research Group
    • Departments & Consortia
  • About
    • About Us
    • Contact
    • Downloads
    • Careers
    • Impressum
    • Disclaimer
    • Privacy & Security
    • Terms & Conditions
  • Appgo to app icon
  • Logingo to app icon
Learn
Guide
Videos
Walkthroughs
FAQ
Release Notes
Classroom
  • 中國人
  • Deutsch
  • Français
  • Español
  • English
Guide
Videos
Walkthroughs
FAQ
Release Notes
Classroom
  • 中國人
  • Deutsch
  • Français
  • Español
  • English
  • Guide
    • GETTING STARTED

      • Objects
      • Events
      • Variables
      • Task Wizard
      • Trial System
      • Study Design
        • Tasks
        • Blocks
        • Sessions
        • Groups
    • FEATURED TOPICS

      • Randomization & Balance
      • Eye Tracking
      • Desktop App
      • Sample Studies
      • Participant Recruitment
      • API Access
        • REST API
        • Webhook API
        • WebSocket API
      • Other Topics

        • Precise Stimulus Timings
        • Multi User Studies
        • Head Tracking in Labvanced | Guide
    • MAIN APP TABS

      • Overview: Main Tabs
      • Dashboard
      • My Studies
      • Shared Studies
      • My Files
      • Experiment Library
      • My Account
      • My License
    • STUDY TABS

      • Overview: Study-Specific Tabs
      • Study Design
        • Tasks
        • Blocks
        • Sessions
        • Groups
      • Task Editor
        • Main Functions and Settings
        • The Trial System
        • Canvas and Page Frames
        • Objects
        • Object Property Tables
        • Variables
        • System Variables Tables
        • The Event System
        • Trial Randomization
        • Text Editor Functions
        • Eyetracking in a Task
        • Head Tracking in a Task
        • Multi-User Studies
      • Study Settings
        • Start Up and Main Settings
        • Browsers & Devices Settings
        • Experiment Features Settings
      • Description
        • More Details about Description Information
        • Images, Links, and References in Descriptions
      • Variables
      • Media
      • Translate
      • Run
      • Publish and Record
        • Requirements for Publishing a Study in Labvanced
        • Recruiting Participants and Crowdsourcing
        • License Selection and Confirmation
        • After Publishing Your Labvanced Study
      • Sharing
      • Participants
      • Dataview and Export
        • Dataview and Variable & Task Selection (OLD Version)
        • Accessing Recordings (OLD Version)
  • Videos
    • Video Overview
    • Getting Started in Labvanced
    • Creating Tasks
    • Element Videos
    • Events & Variables
    • Advanced Topics
  • Walkthroughs
    • Introduction
    • Stroop Task
    • Lexical Decision Task
    • Posner Gaze Cueing Task
    • Change Blindness Flicker Paradigm
    • Eye-tracking Sample Study
    • Infant Eye-tracking Study
    • Attentional Capture Study with Mouse Tracking
    • Rapid Serial Visual Presentation
    • ChatGPT Study
    • Eye Tracking Demo: SVGs as AOIs
    • Multi-User Demo: Show Subjects' Cursors
    • Gamepad / Joystick Controller- Basic Set Up
    • Desktop App Study with EEG Integration
  • FAQ
    • Features
    • Security & Data Privacy
    • Licensing
    • Precision of Labvanced
    • Programmatic Use & API
    • Using Labvanced Offline
    • Troubleshooting
    • Study Creation Questions
  • Release Notes
  • Classroom
Adding image stimuli to online experiments via the image object.

Image Object

The Image Object is one of the most commonly used objects in Labvanced, allowing researchers to present still images or pictures to participants during an experiment. It is commonly used in cognitive, social, and behavioral research to display stimuli such as objects, scenes, or faces. The Image Object is highly flexible and can be customized with various properties and settings to align with the experimental design. Researchers can control aspects like image size, position, rotation, and opacity to ensure precise stimulus presentation. Additionally, the Image Object can be dynamically manipulated through events, enabling advanced logical interactions.

The Image Object in Experimental Design

To work with an Image Object, it’s important to know how you can handle it during experimental design. Below, we will discuss several options of how you can add your images via this object, as well as how you can control it via customization, or using more dynamic approaches like data frames and events. Labvanced provides multiple ways to control the presentation and behavior of the Image Object within an experiment. These can be done using:

  • Object Properties Panel
  • Task Wizard
  • Trial System
  • Events
  • Randomization

Let’s move on to say how an image can be added to the editor before diving into the topics mentioned above.

Adding an Image Object

To integrate an Image Object into your experiment, navigate to the Objects menu and select the Image Object.

Adding an image object to the editor in Labvanced can be done with just a few clicks.

Workflow Tip: Prepare and organize your stimuli in advance.


Object Properties Panel for Image Objects

The Object Properties panel, located on the right side of the screen during editing mode, provides you with several options for editing all properties of the image object, including options to upload image stimuli. As shown in the image below, there are several options on the right side-panel where you can control the settings of the image with just a few clicks. We renamed this image so that it’s called “Target Image”.

The Object Properties panel is shown on the right, revealing image-specific values for the selected object.

For a full explanation of these options, refer to this section at the bottom of the page where all the properties are listed in a table-format.

Note: Keep in mind that all of these properties are also accessible via Events. So if you want to have a custom action, like a button click, to change the property, that’s totally possible!


It’s very common to set a default property using this panel and then use an event to dynamically update it to a new value. For example, you can use an event and specify that upon image click (trigger), the image shifts to the right by 5 units.

Task Wizard for Adding Image Objects

If you like to set up your experimental task using spreadsheets / CSV data, the Task Wizard can be used to add your image stimuli.

In the example below, Columns B & C represent image stimuli which will then automatically be added to image objects for you, upon utilizing the Task Wizard in Labvanced.

In the example below, Columns B & C represent image stimuli which will then automatically be added to image objects for you, upon utilizing the Task Wizard in Labvanced.

Example of a spreadsheet with image stimuli names (Columns B&C) that will be uploaded to create a task via the Task Wizard in Labvanced.

Using this wizard, you can create your entire experimental task structure, including stimuli, events, variables, factors, conditions, randomization and data recordings from a single CSV file plus stimulus files.

Trial System and Image Objects

Once an image object is added to the frame, the Trial System can be collectively used to create different trials (several unique repetitions of the task) based on your experimental hypothesis.

Suppose you are studying emotion and want to categorize your trials and design based on emotion types. You can add two image objects to a frame, one with stimuli of happy emotions and another with sad emotions. Then, you could add a factor named ‘Emotion’ with two levels- ‘happy’ and 'sad’ before proceeding to upload the image stimuli under the relevant conditions.

📌 Hands-On Example: Uploading stimuli to specific levels and objects: In the video below we develop the experiment design by uploading image stimuli to the relevant condition.

For more information, please visit our Trial System documentation.

Events System and Image Objects

The Events System is a dynamic way to:

  • Control how an image behaves
  • Record specific properties of the object:
  • Present image stimuli via data frames

We will discuss these points in greater detail now.

Controlling Image Behavior

Any behavior or appearance of the image can be modified using events.

In the example below we set up a mouse click (trigger) over the image object named ‘Target Image’ and specify that the Target Image’s x-coordinate (which is a property) should increase by +5. This essentially translates to each click will increase the x-coordinate by +5, shifting the image to the right.

Example of how an event can be set up to dynamically change an image's coordniates in an interactive experiment design.

Note: You can record and save in a variable the exact time in milliseconds that the object property change was updated on the screen!


Data and Recordings from the Image Object

To record values associated with the Image Object, you can use the Set/Record Variable action and specify what data you want to record.

Recording File Names

In some cases, you may want to record the exact names of the images that were presented in a trial during the experiment. That’s absolutely possible and easy to set up!

In the example below, we will store the image names for the correct image and the incorrect image. There are two variables– 'correct image name’ and ‘incorrect image name’, both which store ‘string’ data since the name of the file is in string format.

To point to the object, you simply click on the pencil icon and then select the Frame / Task / Object category and choose Object Property. For the first field, you select the target object and for the second field you select Filename. Similarly, for the 'incorrect image name' variable, we point to the filename of the stimulus by linking to the 'incorrect' image object.

Recording Variables from Image objects

As a result of the above, the specific file names of the images are listed per trial as shown in the image below.

How image data is recorded and stored in the data view to reveal what image stimuli were presented in a trial.

The example above is taken from this sample study on the Bouba-Kiki effect which you can import to your account.

Randomization and Image Objects

Randomization is another key topic related to image presentation. There are many ways to discuss randomization in this context as randomization heavily relies on the particular experiment at hand.

With regards to the Image Objects, randomization typically involves changing the location of the target image or selecting a random image from a set.

For more information about randomization and balancing in Labvanced, refer to this page.

Research Spotlight: The Image Object in action

The Image Object plays a crucial role in experimental research, especially in studies involving visual perception, memory, and attention. Labvanced has enabled researchers across various domains to conduct their studies using Labvanced's Image Object.

Visual Attention Dynamics: An Eye Tracking Study

The study (Calignano et al., 2024) explored how semantic processing, i.e., the meanings of words and objects influence where and how we direct our visual focus. It was hypothesised that real words and familiar objects would bias attentional engagement and target detection more effectively than pseudo-words or pseudo-objects.

Participants were presented with primes (initial cues that might affect our attention and perception of later targets). The researchers carried out two web-based eye-tracking experiments using Labvanced:

  • Experiment 1: Participants were presented with words (either real words or pseudo-words) as primes
  • Experiment 2: Involved presenting images (real objects or pseudo-objects) as primes.

Schematic of two expeirments incorporating Lbaavnced's image objects and eye tracking Experimental paradigms with Words (experiment 1) and Images (experiment 2); Calignano et al. (2024).

After viewing the prime, they saw a spatial cue (either valid or invalid) indicating where to look for the target. A valid spatial cue appears at the same location as the target, while an invalid cue appears at a different location from the target. Participants had to identify targets and respond by pressing a key when they locate the target.

The data collected included response times (milliseconds) for target detection, accuracy rates for task performance and eye-tracking data for attentional analysis.

Findings showed that words and recognized objects can enhance target detection through top-down processes even when their presentation is not directly related to the task.

Image Object Properties Table

As with any object in Labvanced, there are general but also object-specific properties that appear on the right side panel when working with the object. Below are the specification and descriptions associated with the Image Object options:

Main Properties of the Image Object

Property NameData TypeModifiable, HowFrame TypeDescription
NameStringYes, text boxCanvas & PageThe name of the object. The name is used many times as reference to the object (i.e. within events), so it should be unique.
VisibilityNumeric (0-1)Yes, checkboxCanvasThe transparency value of the object. With a value of 0 the object will the completely invisible; a value of 1 is completely visible.
ActiveBoolean (true / false)Yes, checkboxCanvas & PageDetermines whether the object is active and can be changed during the experiment execution. If set to false, the object will not elicit any actions.

Position & Size Properties of the Image Object

Property NameData TypeModifiable, HowFrame TypeDescription
XNumeric (0- width of frame)Yes, text or arrowsCanvasThe X position of the object.
YNumeric (0-height of frame)Yes, text or arrowsCanvasThe Y position of the object.
WidthNumeric (0-width of frame)Yes, text or arrowsCanvasThe width of the object.
HeightNumeric (0-width of frame)Yes, text or arrowsCanvasThe height of the object.
AnchorCategorical (1-9)Yes, select optionCanvasThe anchor sets the "position reference point" of the object. By default, this is the top left corner.

Scale & Rotation Properties of the Image Object

Property NameData TypeModifiable, HowFrame TypeDescription
ScalingNumeric (0-Inf)Yes, text or arrowsCanvasChanges the scale / zoom of the element. Larger values will zoom-in the element.
RotationNumeric (0-359)Yes, text or arrowsCanvasChanges the object's rotation. 0 is the default upright position.
Keep aspect ratioBoolean (true / false)Yes, checkboxCanvasDetermines whether the object's aspect ratio is kept when the object is rescaled.

Style of the Image Object

Property NameData TypeModifiable, HowFrame TypeDescription
Border-SizeNumeric (0-INF)Yes, text or arrowsCanvasChanges the object's border size. 0 will show no border.
Border-ColorHex String (Color)Yes, select optionCanvasChanges the object's border color.
Background (BG)-ColorHex String (Color)Yes, select optionCanvasChanges the object's background color. By default there will be no color / transparent.
RoundnessNumeric (0-1)Yes, text or arrowsCanvasChanges the object's roundness. 1 is a completly round object, 0 is a completely square object.
Overflow-XCategorical (Hidden,Auto,Visible)Yes, select optionCanvasDetermines whether the object will have a visible scrollbar in the X dimension.
Overflow-YCategorical (Hidden,Auto,Visible)Yes, select optionCanvasDetermines whether the object will have a visible scrollbar in the Y dimension.
Scroll MarginNumericYes, text or arrowsCanvasDetermines the margin of the scroll bar in percent.
Change CSS PropertiesCSS codeYes, checkbox and text boxCanvasChanges an aspect of the object's appearance using CSS code.

Mouse Interaction in Player

Property NameData TypeModifiable, HowFrame TypeDescription
SelectableBoolean (true / false)Yes, checkboxCanvasDetermines whether the object can be selected / highlighted during the experiment execution.
Highlight on SelectBoolean (true / false)Yes, checkboxCanvasDetermines whether there object that has been selected visually appears selected (ie. with a border).
DraggableBoolean (true / false)Yes, checkboxCanvasDetermines whether the object can be dragged during the experiment execution.
ResizableBoolean (true / false)Yes, checkboxCanvasDetermines whether the object can be rescaled during the experiment execution.
Track ScrollBoolean (true / false)Yes, checkbox and numeric values if activated (ScrollPositionX, ScrollPositionY)CanvasEnables tracking the scroll if an object is presented with scroll bars.

Image Properties

Property NameData TypeModifiable, HowDescription
FilenameStringYes, text boxThe given name of the file.
Select File (Folder Icon)FunctionYes, click on iconA click on the folder icon opens the file manager to choose an existing file or upload and select a new file.
Stimulus InfoStringYes, text boxA modifiable property that can be used to store dynamic stimulus information during the experiment execution.
Stretch to Fit Bounding BoxBoolean (true / false)Yes, checkboxWhen activated, stretches the image to completely fill the bounding box.
Bounding Box FitFunctionYes, click on iconUpon clicking "Fit," the bounding box will be cropped to the dimensions of the image.
Auto Fit Bounding Box with ImageFunctionYes, checkboxWhen activated, the bounding box will automatically be changes to match the image.