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

Resizing videos while maintaining the aspect ratio #502

Open
tato-rj opened this issue Sep 20, 2023 · 1 comment
Open

Resizing videos while maintaining the aspect ratio #502

tato-rj opened this issue Sep 20, 2023 · 1 comment

Comments

@tato-rj
Copy link

tato-rj commented Sep 20, 2023

How can I resize a video but keep the aspect ratio? I am using

->resize(640, 480)

but it stretches the image. Any ideas?

@Klaudijus1996
Copy link

Klaudijus1996 commented Oct 27, 2023

How can I resize a video but keep the aspect ratio? I am using

->resize(640, 480)

but it stretches the image. Any ideas?

Instead of ->resize try using ->addFilter(['-vf', 'scale=-2:480'])

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

No branches or pull requests

2 participants