Linux: batch convert webp to png using ffmpeg

If you have some images in webp format, such as exported from Telegram’s “sticker” packs, and you want to convert them to standard png for use in other applications, I have written a small bash script which will convert all the webp files in a directory into png and then remove the webp files.

This requires that you have ffmpeg installed. If you don’t want the webp files deleted afterward just remove line 5.

If you find this useful let me know in the comments! I invite suggestions to improve upon it.

Please share!

There are no comments

Your email address will not be published. Required fields are marked *