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:
minggo 2014-05-25 22:30:26 -05:00
commit 32964de7c5
1 changed files with 2 additions and 1 deletions

View File

@ -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 */