From b4096c59e4897e03ca503deee0638037abebb0e2 Mon Sep 17 00:00:00 2001 From: Bert Münnich Date: Mon, 29 Sep 2014 14:06:24 +0200 Subject: Set JPEG quality for thumbnail cache files --- thumbs.c | 1 + 1 file changed, 1 insertion(+) (limited to 'thumbs.c') 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) { -- cgit v1.2.3-54-g00ecf