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
I think irfanview can do it in bulk if that still exists, or otherwise imagemagick and a bash script
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...
Do it all locally, no need for a web service
ffmpeg works too yeah
Anytime the question is video or image, the answer is always ffmpeg. It literally does everything
Yep
If you're on Mac you can
brew install ffmpegi'm on windows
or
apt install ffmpeg probably on ubuntu / WSL2Ok, then downloading from the website is best, I think
there should be binary installers linked somewhere on the ffmpeg site
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
imagemagick can do this too with
convert, tends to be what I doit might be the best choice
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.
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
Google for Developers
Downloading and Installing WebP | Google for Developers