Commit cf36be97 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Silently disable thumbnail caching for thumbnails >= 128x128 pixels

(This was actually meant to be included in
f4420709)
parent 06cb9794
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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);
}