Set JPEG quality for thumbnail cache files
This commit is contained in:
parent
390d771e70
commit
b4096c59e4
1
thumbs.c
1
thumbs.c
|
@ -102,6 +102,7 @@ void tns_cache_write(Imlib_Image im, const char *filepath, bool force)
|
||||||
if (err == 0) {
|
if (err == 0) {
|
||||||
imlib_context_set_image(im);
|
imlib_context_set_image(im);
|
||||||
imlib_image_set_format("jpg");
|
imlib_image_set_format("jpg");
|
||||||
|
imlib_image_attach_data_value("quality", NULL, 90, NULL);
|
||||||
imlib_save_image_with_error_return(cfile, &err);
|
imlib_save_image_with_error_return(cfile, &err);
|
||||||
}
|
}
|
||||||
if (err == 0) {
|
if (err == 0) {
|
||||||
|
|
Loading…
Reference in New Issue