<Img>
The <Img /> can be used like a regular <img> HTML tag.
The difference is that if you use the component from Remotion, that Remotion will ensure that the image is loaded before rendering the frame. That way you can avoid flickers if it happens that the image is still loading during rendering.
Example
tsximport {Img } from "remotion";importhi from "./hi.png";export constMyComp :React .FC = () => {return <Img src ={hi } />;};
tsximport {Img } from "remotion";importhi from "./hi.png";export constMyComp :React .FC = () => {return <Img src ={hi } />;};
GIFs
Don't use the <Img> tag for GIFs, use @remotion/gif instead.
Restrictions
- The maximum resolution that Chrome can display is
2^29pixels (539 megapixels) [source]. Remotion inherits this restriction.