mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-14 20:33:48 +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>
|
interactively with the image manipulation buttons:<p>
|
||||||
|
|
||||||
<img src="thumbnail.png"><p>
|
<img src="thumbnail.png"><p>
|
||||||
|
|
||||||
|
Setting <b><code>Thumbnail size = 0</code></b> turns off the thumbnail
|
||||||
|
creation.<p>
|
||||||
</li>
|
</li>
|
||||||
</ul><a name="attrib" id="attrib"></a>
|
</ul><a name="attrib" id="attrib"></a>
|
||||||
<hr>
|
<hr>
|
||||||
|
|||||||
@ -22853,9 +22853,11 @@ int create_thumbnail(LOGBOOK * lbs, char *file_name)
|
|||||||
if (!image_magick_exist)
|
if (!image_magick_exist)
|
||||||
return 0;
|
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);
|
sprintf(thumb_size, " -thumbnail '%s'", str);
|
||||||
else
|
} else
|
||||||
thumb_size[0] = 0;
|
thumb_size[0] = 0;
|
||||||
|
|
||||||
if (!chkext(file_name, ".ps") && !chkext(file_name, ".pdf") && !chkext(file_name, ".eps")
|
if (!chkext(file_name, ".ps") && !chkext(file_name, ".pdf") && !chkext(file_name, ".eps")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user