mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-12 19:06:50 +00:00
Removed .eps from page-wise thumbnail creation
SVN revision: 2022
This commit is contained in:
parent
2c365c9f1c
commit
33179aa33a
@ -312,6 +312,10 @@
|
|||||||
RelativePath="..\doc\index.html"
|
RelativePath="..\doc\index.html"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\doc\index_d.html"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
</Filter>
|
</Filter>
|
||||||
<Filter
|
<Filter
|
||||||
Name="Header Files"
|
Name="Header Files"
|
||||||
|
|||||||
@ -22071,12 +22071,12 @@ int create_thumbnail(LOGBOOK * lbs, char *file_name)
|
|||||||
#ifdef OS_UNIX
|
#ifdef OS_UNIX
|
||||||
strsubst(str2, sizeof(str2), " ", "\\ ");
|
strsubst(str2, sizeof(str2), " ", "\\ ");
|
||||||
strsubst(str, sizeof(str), " ", "\\ ");
|
strsubst(str, sizeof(str), " ", "\\ ");
|
||||||
if (chkext(file_name, ".pdf") || chkext(file_name, ".ps") | chkext(file_name, ".eps"))
|
if (chkext(file_name, ".pdf") || chkext(file_name, ".ps"))
|
||||||
sprintf(cmd, "convert '%s[0-7]' -thumbnail '%s' '%s'", str2, thumb_size, str);
|
sprintf(cmd, "convert '%s[0-7]' -thumbnail '%s' '%s'", str2, thumb_size, str);
|
||||||
else
|
else
|
||||||
sprintf(cmd, "convert '%s' -thumbnail '%s' '%s'", str2, thumb_size, str);
|
sprintf(cmd, "convert '%s' -thumbnail '%s' '%s'", str2, thumb_size, str);
|
||||||
#else
|
#else
|
||||||
if (chkext(file_name, ".pdf") || chkext(file_name, ".ps") | chkext(file_name, ".eps"))
|
if (chkext(file_name, ".pdf") || chkext(file_name, ".ps"))
|
||||||
sprintf(cmd, "convert \"%s[0-7]\" -thumbnail \"%s\" \"%s\"", str2, thumb_size, str);
|
sprintf(cmd, "convert \"%s[0-7]\" -thumbnail \"%s\" \"%s\"", str2, thumb_size, str);
|
||||||
else
|
else
|
||||||
sprintf(cmd, "convert \"%s\" -thumbnail \"%s\" \"%s\"", str2, thumb_size, str);
|
sprintf(cmd, "convert \"%s\" -thumbnail \"%s\" \"%s\"", str2, thumb_size, str);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user