diff src/thumb.c @ 1060:1e2de04c6fc4

added option to use exif thumbnails - it requires exiv2 0.18 or the current svn - it is disabled by default because the exif thumbnails may be outdated if the image was edited
author nadvornik
date Sat, 11 Oct 2008 20:19:48 +0000
parents 1646720364cf
children 95860439070b
line wrap: on
line diff
--- a/src/thumb.c	Tue Oct 07 19:34:11 2008 +0000
+++ b/src/thumb.c	Sat Oct 11 20:19:48 2008 +0000
@@ -471,7 +471,11 @@
 {
 	ThumbLoader *tl;
 
-	if (options->thumbnails.spec_standard)
+	/* non-std thumb loader is more effective for configurations with disabled caching
+	   because it loads the thumbnails at the required size. loader_std loads
+	   the thumbnails at the sizes appropriate for standard cache (typically 256x256 pixels)
+	   and then performs one additional scaling */
+	if (options->thumbnails.spec_standard && options->thumbnails.enable_caching)
 		{
 		return (ThumbLoader *)thumb_loader_std_new(width, height);
 		}