Everytime when I wanted to see the preview of a pdf-file, it loaded longer than in ranger. After looking into the vifmimg code I add an option to convert the pdf-file into jpg which is in my opinion faster than converting it into png.
So the default converter-file-type will be jpg and if you still want to use png than you just need to add "png" as the seventh argument in your fileviewer:
Everytime when I wanted to see the preview of a pdf-file, it loaded longer than in
ranger
. After looking into thevifmimg
code I add an option to convert the pdf-file intojpg
which is in my opinion faster than converting it intopng
.So the default converter-file-type will be
jpg
and if you still want to usepng
than you just need to add"png"
as the seventh argument in your fileviewer:It converts now much faster than before (on my machine). Anyway I mainly changed the
previewpdf()
function in thevifmimg
file. I hope this helps.