Reduce Filesize by Converting GIF PNG JPG Images to WebP - Linux CLI
gotbletu
WebP is a modern image format that provides superior lossless and lossy compression for images on the web. Using WebP, webmasters and web developers can create smaller, richer images that make the web faster.
WebP lossless images are 26% smaller in size compared to PNGs. WebP lossy images are 25-34% smaller than comparable JPEG images at equivalent SSIM quality index.
Lossless WebP supports transparency (also known as alpha channel) at a cost of just 22% additional bytes. For cases when lossy RGB compression is acceptable, lossy WebP also supports transparency, typically providing 3× smaller file sizes compared to PNG.
https://developers.google.com/speed/webp/docs/cwebp
commands used: cwebp -q 50 input.png -o output.webp gif2webp -q 50 input.gif -o output.webp convert -quality 50 input.jpeg output.webp
batch converting
for i in .gif ; do gif2webp -q 50 "$i" -o "${i%.}.webp" ; done for i in .jpg ; do convert -quality 50 "$i" "${i%.}.webp" ; done for i in ; do convert -quality 50 "$i" "${i%.}.webp" ; done
#cwebp #gif2webp #webp #libwebp #converter #imagemagick ... https://www.youtube.com/watch?v=oedJ-taJ4fg
46452963 Bytes