mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2025-06-20 18:08:02 +02:00
Minor
This commit is contained in:
parent
abf1a706ac
commit
2e0827a873
@ -1,15 +1,15 @@
|
|||||||
# office: libreoffice
|
# office: libreoffice
|
||||||
|
|
||||||
lo() {
|
doc() {
|
||||||
# File produced by libreoffice
|
# File produced by libreoffice
|
||||||
jpg="$(printf '%s\n' "$f" | sed 's|^.*/||; s|\..*$||')"
|
jpg="$(printf '%s\n' "$f" | sed 's|^.*/||; s|\..*$||')"
|
||||||
|
|
||||||
libreoffice \
|
libreoffice \
|
||||||
--headless \
|
--headless \
|
||||||
--convert-to jpg \
|
--convert-to jpg \
|
||||||
--outdir "$cache_d" \
|
--outdir "$cache_d" \
|
||||||
"$f" >/dev/null &&
|
"$f" >/dev/null &&
|
||||||
mv -- "$cache_d/$jpg.jpg" "$cache_f"
|
mv -- "$cache_d/$jpg.jpg" "$cache_f"
|
||||||
}
|
}
|
||||||
|
|
||||||
convert_and_show_image lo
|
convert_and_show_image doc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user