mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Convert maximal 10 pages to thumbnails
SVN revision: 2019
This commit is contained in:
parent
d82a98cd16
commit
b2c92fa306
@ -21971,9 +21971,9 @@ 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), " ", "\\ ");
|
||||||
sprintf(cmd, "convert %s -thumbnail \"%s\" %s", str2, thumb_size, str);
|
sprintf(cmd, "convert %s\[0-9\] -thumbnail \"%s\" %s", str2, thumb_size, str);
|
||||||
#else
|
#else
|
||||||
sprintf(cmd, "convert \"%s\" -thumbnail \"%s\" \"%s\"", str2, thumb_size, str);
|
sprintf(cmd, "convert \"%s[0-9]\" -thumbnail \"%s\" \"%s\"", str2, thumb_size, str);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
sprintf(str, "SHELL \"%s\"", cmd);
|
sprintf(str, "SHELL \"%s\"", cmd);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user