mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Added -%d argument for all conversions
SVN revision: 2077
This commit is contained in:
parent
5149f9ae59
commit
e36c2bf892
@ -22354,7 +22354,10 @@ int create_thumbnail(LOGBOOK * lbs, char *file_name)
|
|||||||
if (strrchr(str, '.'))
|
if (strrchr(str, '.'))
|
||||||
*strrchr(str, '.') = 0;
|
*strrchr(str, '.') = 0;
|
||||||
}
|
}
|
||||||
strlcat(str, ".png", sizeof(str));
|
if (chkext(file_name, ".pdf") || chkext(file_name, ".ps"))
|
||||||
|
strlcat(str, "-%d.png", sizeof(str));
|
||||||
|
else
|
||||||
|
strlcat(str, ".png", sizeof(str));
|
||||||
|
|
||||||
if (chkext(file_name, ".pdf") || chkext(file_name, ".ps"))
|
if (chkext(file_name, ".pdf") || chkext(file_name, ".ps"))
|
||||||
sprintf(cmd, "convert '%s[0-7]'%s '%s'", file_name, thumb_size, str);
|
sprintf(cmd, "convert '%s[0-7]'%s '%s'", file_name, thumb_size, str);
|
||||||
@ -22476,7 +22479,7 @@ void call_image_magick(LOGBOOK * lbs)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (thumb_status == 2)
|
if (thumb_status == 2)
|
||||||
strsubst(thumb_name, sizeof(thumb_name), "-0", "");
|
strsubst(thumb_name, sizeof(thumb_name), "-0", "-%d");
|
||||||
|
|
||||||
i = cmd[0] = 0;
|
i = cmd[0] = 0;
|
||||||
if (strieq(getparam("req"), "rotleft")) {
|
if (strieq(getparam("req"), "rotleft")) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user