diff options
| author | Andrea Fontana <[email protected]> | 2020-12-16 19:07:18 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-12-16 19:07:18 +0100 |
| commit | ef0dcaabf934dcdb418df66069a5c0de379ac6f8 (patch) | |
| tree | cbb1d094642cf5f60627f8b34dd63a1542aa6ad0 /src | |
| parent | f5b465680195058ddabc69ab37f89bc92bc560d0 (diff) | |
| download | raylib-ef0dcaabf934dcdb418df66069a5c0de379ac6f8.tar.gz raylib-ef0dcaabf934dcdb418df66069a5c0de379ac6f8.zip | |
Changing JPG compression (#1463)
Since I don't think the purpose of raylib is to save space compressing image, I think it could be a good idea to keep quality from 90 to 100.
Diffstat (limited to 'src')
| -rw-r--r-- | src/textures.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textures.c b/src/textures.c index cf51882a..e6eb3e88 100644 --- a/src/textures.c +++ b/src/textures.c @@ -428,7 +428,7 @@ bool ExportImage(Image image, const char *fileName) else if (IsFileExtension(fileName, ".tga")) success = stbi_write_tga(fileName, image.width, image.height, channels, imgData); #endif #if defined(SUPPORT_FILEFORMAT_JPG) - else if (IsFileExtension(fileName, ".jpg")) success = stbi_write_jpg(fileName, image.width, image.height, channels, imgData, 80); // JPG quality: between 1 and 100 + else if (IsFileExtension(fileName, ".jpg")) success = stbi_write_jpg(fileName, image.width, image.height, channels, imgData, 90); // JPG quality: between 1 and 100 #endif #if defined(SUPPORT_FILEFORMAT_KTX) else if (IsFileExtension(fileName, ".ktx")) success = SaveKTX(image, fileName); |
