mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2024-12-01 00:43:08 +01:00
11 lines
257 B
Bash
11 lines
257 B
Bash
pdf() {
|
|
pdftoppm -f 1 -l 1 \
|
|
-scale-to-x 1920 \
|
|
-scale-to-y -1 \
|
|
-singlefile \
|
|
-jpeg -tiffcompression jpeg \
|
|
-- "$f" "$cache_f" && mv -- "$cache_f.jpg" "$cache_f"
|
|
}
|
|
|
|
convert_and_show_image pdf
|