From cf36be979939c93315b77f24575dc4028916776d Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 30 May 2010 23:59:33 +0200 Subject: Silently disable thumbnail caching for thumbnails >= 128x128 pixels (This was actually meant to be included in f44207093fdd02efc3e6e03054775514787b108e) --- src/options.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/options.c b/src/options.c index 56bfea8..52c90d6 100644 --- a/src/options.c +++ b/src/options.c @@ -798,6 +798,14 @@ static void check_options(void) opt.thumb_title = NULL; } + if (opt.cache_thumbnails && ((opt.thumb_w > 128) || (opt.thumb_h > 128))) { + /* No warning needed, the documentation should be clear enough. + * Plus, we don't want to annoy users who use --cache-thumbnails by + * default but frequently change their thumbnail size. + */ + opt.cache_thumbnails = 0; + } + D_RETURN_(4); } -- cgit v1.2.3