Convert maximal 10 pages to thumbnails

SVN revision: 2019
This commit is contained in:
2008-01-31 08:52:54 +00:00
parent d82a98cd16
commit b2c92fa306
+2 -2
View File
@@ -21971,9 +21971,9 @@ int create_thumbnail(LOGBOOK * lbs, char *file_name)
#ifdef OS_UNIX
strsubst(str2, sizeof(str2), " ", "\\ ");
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
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
sprintf(str, "SHELL \"%s\"", cmd);