mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2025-08-19 02:56:30 +02:00
Minor
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user