- Source: https://github.com/mozilla/mozjpeg
- Version: v3.3.1
- Docker
See example.html
Returns the version of MozJPEG as a number. va.b.c is encoded as 0x0a0b0c
Frees the result created by encode().
Encodes the given image with given dimension to JPEG. Options looks like this:
struct MozJpegOptions {
int quality;
bool baseline;
bool arithmetic;
bool progressive;
bool optimize_coding;
int smoothing;
int color_space;
int quant_table;
bool trellis_multipass;
bool trellis_opt_zero;
bool trellis_opt_table;
int trellis_loops;
};