Convert maximal 10 pages to thumbnails

SVN revision: 2019
This commit is contained in:
Stefan Ritt 2008-01-31 08:52:54 +00:00
parent d82a98cd16
commit b2c92fa306

View File

@ -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);