Changed default quality value to optimization

This commit is contained in:
Matteo Paonessa 2016-12-15 21:47:35 +01:00
parent 9944e6b08d
commit 396446c39c
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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;