- To fixed size:
.\ffmpeg.exe -i img.jpg -vf scale=320:240caled.jpg
- To aspect ratio with fixed width:
.\ffmpeg.exe -i img.jpg -vf scale=320:-1 scaled.jpg
- To aspect ratio with fixed height:
.\ffmpeg.exe -i img.jpg -vf scale=-1:240 scaled.jpg
- To percentage:
.\ffmpeg.exe -i img.jpg -vf scale=iw/2:ih/2 scaled.jpg
-
Notifications
You must be signed in to change notification settings - Fork 0
TomasHubelbauer/ffmpeg-resize-image
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A snippet showing how to resize an image using FFMPEG