mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-14 20:33:48 +00:00
Added -%d argument for all conversions
SVN revision: 2077
This commit is contained in:
parent
5149f9ae59
commit
e36c2bf892
@ -22354,6 +22354,9 @@ int create_thumbnail(LOGBOOK * lbs, char *file_name)
|
|||||||
if (strrchr(str, '.'))
|
if (strrchr(str, '.'))
|
||||||
*strrchr(str, '.') = 0;
|
*strrchr(str, '.') = 0;
|
||||||
}
|
}
|
||||||
|
if (chkext(file_name, ".pdf") || chkext(file_name, ".ps"))
|
||||||
|
strlcat(str, "-%d.png", sizeof(str));
|
||||||
|
else
|
||||||
strlcat(str, ".png", sizeof(str));
|
strlcat(str, ".png", sizeof(str));
|
||||||
|
|
||||||
if (chkext(file_name, ".pdf") || chkext(file_name, ".ps"))
|
if (chkext(file_name, ".pdf") || chkext(file_name, ".ps"))
|
||||||
@ -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