Krolyxon
Commit b4096c5

Branches

Refs →

nsxivb4096c5

Set JPEG quality for thumbnail cache files

Author
Bert Münnich
Date
2014-09-29 14:06 +0200
Parent
390d771
Commit
b4096c59e4897e03ca503deee0638037abebb0e2

+1 −0

1 file changed

  1. M thumbs.c +1 −0
M thumbs.c View
@@ -102,6 +102,7 @@ void tns_cache_write(Imlib_Image im, const char *filepath, bool force)
102102 if (err == 0) {
103103 imlib_context_set_image(im);
104104 imlib_image_set_format("jpg");
105+ imlib_image_attach_data_value("quality", NULL, 90, NULL);
105106 imlib_save_image_with_error_return(cfile, &err);
106107 }
107108 if (err == 0) {