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).
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).