Closed andrasferenczi closed 1 week ago
It's confusing, but it works if you pass the same inputProps to selectComposition()
!
We're already fixing this for 5.0 to make this field mandatory, hope this will make it less likely to fall into this trap.
Bug Report 🐛
The full reproduction based on the starter template can be found here. Relevant code:
and
render.ts
Logs after running
npm run render
Initially I tried creating a repro example, because the output of the
renderMedia
did not have any effect on the size of the image. So the issues I have encountered when I am runningnpm run render
:1) The
CALCULATE METADATA
is never printed in the log, even though everything is configured 2) The image size of the output image is1366x768
, which means that the "small" from thedefaultProps
took effect. But it should be1920x1080
, "big" is passed into theprops
On the other hand, with
npm render-cli
command I am getting the proper size and the proper logs, it seems: