Implemented "Thumbnail size = 0"

SVN revision: 2227
This commit is contained in:
Stefan Ritt 2009-06-26 06:12:03 +00:00
parent ab0134a016
commit 1683afdd31
2 changed files with 7 additions and 2 deletions

View File

@ -976,6 +976,9 @@ if the file name starts with a <b><code>"/"</code></b> (Unix) or <b><code>
interactively with the image manipulation buttons:<p>
<img src="thumbnail.png"><p>
Setting <b><code>Thumbnail size = 0</code></b> turns off the thumbnail
creation.<p>
</li>
</ul><a name="attrib" id="attrib"></a>
<hr>

View File

@ -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")