Changed default quality value to optimization
This commit is contained in:
parent
9944e6b08d
commit
396446c39c
|
@ -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.
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue