Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(render-still): handle negativ frame index #1364

Merged
merged 5 commits into from Oct 4, 2022

Conversation

Slashgear
Copy link
Contributor

@Slashgear Slashgear commented Oct 3, 2022

Why

Close #1283

How

  • Take negative integers in renderStill(),
  • renderStillOnLambda(),
  • npx remotion still
  • npx remotion lambda still
  • 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.

IssueHunt Summary

Referenced issues

This pull request has been submitted to:


@vercel
Copy link

vercel bot commented Oct 3, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
remotion ✅ Ready (Inspect) Visit Preview Oct 4, 2022 at 8:12AM (UTC)

@JonnyBurger
Copy link
Member

Sick! Looks good on first sight, will properly review it tomorrow!

@JonnyBurger
Copy link
Member

LGTM! Thanks a lot 🙌

@JonnyBurger JonnyBurger merged commit 5460153 into remotion-dev:main Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generating last image of a Composition
2 participants