mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2024-11-28 15:33:07 +01:00
15 lines
302 B
Bash
15 lines
302 B
Bash
|
# libreoffice
|
||
|
|
||
|
office() {
|
||
|
# File produced by libreoffice
|
||
|
jpg="$(printf '%s\n' "$f" | sed 's|^.*/||; s|\..*$||')"
|
||
|
|
||
|
libreoffice \
|
||
|
--headless \
|
||
|
--convert-to jpg "$f" \
|
||
|
--outdir "$cache_d" >/dev/null &&
|
||
|
mv "$cache_d/$jpg.jpg" "$cache_f"
|
||
|
}
|
||
|
|
||
|
convert_and_show_image office
|