Skip to content

Instantly share code, notes, and snippets.

@rameyrobo
Created September 19, 2025 01:52
Show Gist options
  • Save rameyrobo/96751ef9c7a98a2717d4ca42e5b50435 to your computer and use it in GitHub Desktop.
Save rameyrobo/96751ef9c7a98a2717d4ca42e5b50435 to your computer and use it in GitHub Desktop.
ffmpeg convert jpg to webp w/ optional scale
ffmpeg -i [original-image-filename].jpg -vf scale=1920:-1 [new-image-filename].webp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment