Skip to content

🎥 Make videos programmatically with React

remotion: Merge main

JonnyBurgerec185d19f469
diff --cc packages/core/src/canvas-image/CanvasImage.tsx
index 9d6b0cf6ff,dfe1e1a4cb..1def425c34
--- a/packages/core/src/canvas-image/CanvasImage.tsx
+++ b/packages/core/src/canvas-image/CanvasImage.tsx
@@@ -3,10 -3,9 +3,11 @@@ import
useCallback,
useContext,
useEffect,
+ useImperativeHandle,
useMemo,
+ useRef,
useState,
+ type RefObject,
} from 'react';
import {calculateImageFit} from '../calculate-image-fit.js';
import type {SequenceControls} from '../CompositionManager.js';
@@@ -439,10 -440,10 +446,12 @@@ const CanvasImageInner = forwardRef
_remotionInternalEffects={memoizedEffectDefinitions}
_remotionInternalIsMedia={{type: 'image', src}}
_remotionInternalStack={stack}
- _remotionInternalRefForOutline={actualRef}
- _remotionInternalRefForOutline={_remotionInternalRefForOutline ?? null}
++ _remotionInternalRefForOutline={
++ _remotionInternalRefForOutline ?? actualRef
++ }
>
<CanvasImageContent
- ref={ref}
+ ref={actualRef}
src={src}
width={width}
height={height}