Does anyone know how to convert PNG to WebP? Some websites have a daily limit.

i want to convert a lot of PNG images to WebP
16 Replies
Jochem
Jochem4w ago
I think irfanview can do it in bulk if that still exists, or otherwise imagemagick and a bash script
13eck
13eck4w ago
Stack Overflow
How to make FFmpeg convert a PNG sequence into a WEBP sequence, ins...
This command converts a PNG sequence into a JPG sequence: ffmpeg -i in/%8d.png out/%8d.jpg However, when using the same command with WEBP: ffmpeg -i in/%8d.png out/%8d.webp It will put all frames i...
13eck
13eck4w ago
Do it all locally, no need for a web service
Jochem
Jochem4w ago
ffmpeg works too yeah
13eck
13eck4w ago
Anytime the question is video or image, the answer is always ffmpeg. It literally does everything
kamekameha
kamekamehaOP4w ago
is it this one https://www.ffmpeg.org/ ?
13eck
13eck4w ago
Yep If you're on Mac you can brew install ffmpeg
kamekameha
kamekamehaOP4w ago
i'm on windows
Jochem
Jochem4w ago
or apt install ffmpeg probably on ubuntu / WSL2
13eck
13eck4w ago
Ok, then downloading from the website is best, I think
Jochem
Jochem4w ago
there should be binary installers linked somewhere on the ffmpeg site
ἔρως
ἔρως4w ago
if you only need a one-off, just throw it into squoosh.app but yeah, for a lot of images, ffmpeg is a good choice
prophile
prophile4w ago
imagemagick can do this too with convert, tends to be what I do
ἔρως
ἔρως4w ago
it might be the best choice
curiousmissfox
I have XnConvert bookmarked but have never used it. Squoosh has an npm package but is not maintained. I don’t remember all the details but I do remember I had to download and use an older Node version to get it to work (I want to say Node 14 but don’t quote me)
XnView Software
XnConvert · Batch Image Converter | Image convert | XnView.com
Batch photo resizer and image converter to crop, convert, compress, resize images.
andy
andy4w ago
You can use the cli tool cwebp, and write a script to batch convert. Just use the script in the same directory as your images. https://developers.google.com/speed/webp/download

Did you find this page helpful?