mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Implemented "Thumbnail size = 0"
SVN revision: 2227
This commit is contained in:
parent
ab0134a016
commit
1683afdd31
@ -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>
|
||||
|
||||
@ -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")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user