sxiv

simple X image viewer
git clone git://git.suckless.org/sxiv
Log | Files | Refs | LICENSE

commit b4096c59e4897e03ca503deee0638037abebb0e2
parent 390d771e7035f089d95a7552a9c9fdf41caf1ea6
Author: Bert M√ľnnich <ber.t@posteo.de>
Date:   Mon, 29 Sep 2014 14:06:24 +0200

Set JPEG quality for thumbnail cache files

Diffstat:
thumbs.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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) {