This commit is contained in:
Nikita Ivanov
2022-07-31 17:16:58 +05:00
parent abf1a706ac
commit 2e0827a873

View File

@@ -1,15 +1,15 @@
# office: libreoffice
lo() {
doc() {
# File produced by libreoffice
jpg="$(printf '%s\n' "$f" | sed 's|^.*/||; s|\..*$||')"
libreoffice \
--headless \
--convert-to jpg \
libreoffice \
--headless \
--convert-to jpg \
--outdir "$cache_d" \
"$f" >/dev/null &&
mv -- "$cache_d/$jpg.jpg" "$cache_f"
}
convert_and_show_image lo
convert_and_show_image doc