Skip to content

Commit

Permalink
Increased JPG screenshot quality
Browse files Browse the repository at this point in the history
Feedback indicated 50 was too low. However, the suggested value of 100 produces quite
large files. So I compromised and went with 75.
  • Loading branch information
Vultraz committed Mar 16, 2018
1 parent f28136a commit 5c5eeac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/image.cpp
Expand Up @@ -1336,7 +1336,7 @@ bool save_image(const surface& surf, const std::string& filename)
if(filesystem::ends_with(filename, ".jpg")) {
LOG_DP << "Writing a JPG image to " << filename << std::endl;

const int err = IMG_SaveJPG_RW(surf, filesystem::make_write_RWops(filename).release(), true, 50); // SDL takes ownership of the RWops
const int err = IMG_SaveJPG_RW(surf, filesystem::make_write_RWops(filename).release(), true, 75); // SDL takes ownership of the RWops
return err == 0;
}
#endif
Expand Down

0 comments on commit 5c5eeac

Please sign in to comment.