aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2014-09-29 14:06:24 +0200
committerBert Münnich <ber.t@posteo.de>2014-09-29 14:06:24 +0200
commitb4096c59e4897e03ca503deee0638037abebb0e2 (patch)
treee550787a9fce436dfc6a5c18e0dbfbcfba9aaf50
parent390d771e7035f089d95a7552a9c9fdf41caf1ea6 (diff)
Set JPEG quality for thumbnail cache files
-rw-r--r--thumbs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/thumbs.c b/thumbs.c
index 8f129fb..8ae35b2 100644
--- a/thumbs.c
+++ b/thumbs.c
@@ -102,6 +102,7 @@ void tns_cache_write(Imlib_Image im, const char *filepath, bool force)
if (err == 0) {
imlib_context_set_image(im);
imlib_image_set_format("jpg");
+ imlib_image_attach_data_value("quality", NULL, 90, NULL);
imlib_save_image_with_error_return(cfile, &err);
}
if (err == 0) {