Skip to content

display property not initialized for Image clips #18

@ViktorEj

Description

@ViktorEj

Description: When creating an Image clip via Image.fromUrl(), the display property is not initialized. This causes crashes when calling exportToJSON() or clipToJSON().

Steps to reproduce:

const imageClip = await Image.fromUrl(dataUrl, 'test.png');
console.log(imageClip.display); // undefined

studio.exportToJSON();
// TypeError: Cannot read properties of undefined (reading 'from')
Expected behavior: display should be initialized with default values (e.g., { from: 0, to: 5_000_000 } for a 5-second default duration).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions