diff --git a/README.md b/README.md index 2109b01..efbd807 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ typedef struct cs_jpeg_pars ``` The first 3 parameters matters, in term of compression, while the others will be set by the compressor/decompressor during the compression progress and thus they will be overwritten. -- **quality**: in a range from 0 to 100, the quality of the resulting image. **Note** that 0 means _optimization_ (see below). Default: 65. +- **quality**: in a range from 0 to 100, the quality of the resulting image. **Note** that 0 means _optimization_ (see below). Default: 0. - **exif_copy**: set it to _true_ to copy EXIF tag info after compression. Default: false; - **dct_method**: one of the turbojpeg DCT flags. Default: TJFLAG_FASTDCT. diff --git a/demo/helper.c b/demo/helper.c index a7b7442..ab58112 100644 --- a/demo/helper.c +++ b/demo/helper.c @@ -5,7 +5,7 @@ void initialize_jpeg_parameters(cs_image_pars *options) { - options->jpeg.quality = 65; + options->jpeg.quality = 0; options->jpeg.exif_copy = false; options->jpeg.dct_method = TJFLAG_FASTDCT; options->jpeg.width = 0;