This is a simple front-end for the Google libwebp library, similar to img2webp, but with support for image cropping & scaling.
It currently only runs on Windows x64.
JargonWebpEncoder v1.0
A utility for encoding images into webp format, with support
for creating animated webp files from a list of frames, along with
scaling and cropping images. Built with Google's libwebp library.
https://github.com/jasonmray/JargonWebpEncoder/
Usage:
JargonWebpEncoder.exe [options] <source pictures...>
Examples:
JargonWebpEncoder.exe in.jpg
JargonWebpEncoder.exe -o out.webp in.png
JargonWebpEncoder.exe -quality 85 -width 400 *.png -o out_anim.webp
JargonWebpEncoder.exe image1.png image2.png image3.png -o "out anim.webp"
Notes:
* Output filename defaults to first input filename changed to .webp extension.
* Cropping is always applied before scaling.
General options:
-h Show help screen and exit
-verbose Verbose mode
Output file options:
-o <filename> Output filename
-overwrite Overwrite output file without prompting
Animation options:
-loop <int> loop count for animations (default 0=infinite)
-fps <int|float> frames-per-second speed for animations (default=24.0)
Quality options:
-lossless use lossless encoding
-lossy use lossy encoding (default)
-quality <int|float> quality setting for lossy encoding (0-100, default 91)
-optimize optimize output file for small size (much slower)
-compression <int> compression method (0=fast, 6=slow, default=5)
Cropping options:
-crop <string> Crop settings. Valid formats are:
<width>x<height>
<width>x<height>+<left>+<top>
For example:
640x480
500x500+10+0
Scaling options:
-width <int> Pixel dimension of result
-height <int> Pixel dimension of result
The project should build cleanly with Visual Studio 2022.
- Open JargonWebpEncoder.sln
- Build Release x64
- Locate the output binary at bin\Release_x64\JargonWebpEncoder.exe