mirror of https://github.com/axmolengine/axmol.git
Merge pull request #6877 from sachingarg05/BetterJpegSaveQuality
[ci skip]Set jpeg save quality to 90 (default is only 75, on a scale of 0 to 100)
This commit is contained in:
commit
32964de7c5
|
@ -2120,7 +2120,8 @@ bool Image::saveImageToJPG(const std::string& filePath)
|
|||
cinfo.in_color_space = JCS_RGB; /* colorspace of input image */
|
||||
|
||||
jpeg_set_defaults(&cinfo);
|
||||
|
||||
jpeg_set_quality(&cinfo, 90, TRUE);
|
||||
|
||||
jpeg_start_compress(&cinfo, TRUE);
|
||||
|
||||
row_stride = _width * 3; /* JSAMPLEs per row in image_buffer */
|
||||
|
|
Loading…
Reference in New Issue