input.jpg
Selected file
FFmpeg command
ffmpeg -i 'input.jpg' -c:v libwebp -q:v 80 'output.webp'About this command
This command converts the input image to WebP. The quality value controls the balance between image quality and file size.
-iSpecifies the input image file.
-c:v libwebpEncodes the image using the WebP image codec.
-q:vControls WebP image quality. Higher values generally produce better quality and larger files.