Generating last image of a Composition #1283
Slashgear posted onGitHub
š This issue is part of our Hacktoberfest campaign! š Read more about Hacktoberfest here š This issue is currently assigned to @Slashgear and not for taking!
<!--- Provide a general summary of the feature in the Title above -->
I was playing with the CLI and still
action to generate image.
Awesome feature š
I wanted to generate the last frame of my Composition and found no other solution than to pass the correct number to the command.
Use Case
<!--- Tell us what feature we should support and what should happen -->
remotion still src/index.tsx Example --frame -1
Possible Solution
<!--- Not obligatory, but suggest an implementation -->
š” Negative values of frame could be useful to generate frame relative to the last one. I could take this subject as a contribution.
Hacktoberfest Acceptance Criteria
(edit by @JonnyBurger)
- Take negative integers in
renderStill()
,renderStillOnLambda()
,npx remotion still
andnpx remotion lambda still
and treat them as frames from the back:-1
means last frame,-2
means second to last frame etc. - Keep up the strict validation, e.g.
-200
should not be possible if the duration is only 100 frames. - Document the feature in the documentation pages of the APIs and commands that accept this option.