Looking to convert webp to jpg from the command line? Use this quick terminal command to convert Google’s webp images to .jpg or .png. Convert a single file, or an entire folder of webp images to the photo format you prefer.
ffmpeg can do this, so no need to install any other tools if you already have it installed.
Terminal command to convert a single webp image to jpg or png:
1 |
ffmpeg -i file.webp out.png |
Terminal command to convert an entire folder of webp images to jpg or png
1 |
for x in ls *.webp; do ffmpeg -i $x ${x%.webp}.jpg; done |