From 1683afdd31abf2243a59b42062945295398da19e Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Fri, 26 Jun 2009 06:12:03 +0000 Subject: [PATCH] Implemented "Thumbnail size = 0" SVN revision: 2227 --- doc/config.html | 3 +++ src/elogd.c | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/doc/config.html b/doc/config.html index 75e1e6b4..bbbb902e 100755 --- a/doc/config.html +++ b/doc/config.html @@ -976,6 +976,9 @@ if the file name starts with a "/" (Unix) or interactively with the image manipulation buttons:

+ + Setting Thumbnail size = 0 turns off the thumbnail + creation.


diff --git a/src/elogd.c b/src/elogd.c index 43631369..18aa87a7 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -22853,9 +22853,11 @@ int create_thumbnail(LOGBOOK * lbs, char *file_name) if (!image_magick_exist) return 0; - if (getcfg(lbs->name, "Thumbnail size", str, sizeof(str))) + if (getcfg(lbs->name, "Thumbnail size", str, sizeof(str))) { + if (strcmp(str, "0") == 0) + return 0; sprintf(thumb_size, " -thumbnail '%s'", str); - else + } else thumb_size[0] = 0; if (!chkext(file_name, ".ps") && !chkext(file_name, ".pdf") && !chkext(file_name, ".eps")