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

[FEATURE REQUEST] Make an animation with the ViewBox changing dynamically #77

Open
giacomomarchioro opened this issue Sep 2, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@giacomomarchioro
Copy link

Is your feature request related to a problem? Please describe.
I have an animation with a "zoom like" effect where I change the view box so that I can zoom to a detail.

               <animate
   attributeName="viewBox"
   from="0 0 1080 1350"
   to="323 167 523 300"
   dur="5s"
   begin="0s"
   fill="freeze" />

Unfortunately when I export the video, setting the view port manually:

timecut manuscript2.svg --viewport="1080,1350" --fps=30 --duration=5 --frame-cache --pix-fmt=yuv420p --output=video2.mp4

the "zoom like" effect is lost.

Describe the solution you'd like
I would like to be able to export the animation with a defined aspect ratio e.g. --viewport="1080,1350" and keep the "zoom-like" effect.

Describe alternatives you've considered
An alternative would be to keep the viewBox fixed and apply transformations to the all the objects.

@giacomomarchioro giacomomarchioro added the enhancement New feature or request label Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant