You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My current workaround for viewing djvu files on the fb console looks like this:
#!/bin/bash
#
# fbdjview --- View DjVu files on Linux framebuffer console
# By Tigran Aivazian, v1.0, 29 December 2017
# License: GPLv3
#
# Pre-requisites: fbi and ddjvu (Run "sudo apt install fbi djvulibre-bin" to install on Ubuntu)
#
if [ $# -ne 1 ] ; then
echo "Usage: fbdjview file.djvu"
exit 1
fi
if [ ! -f "$1" ] ; then
echo "fbdjview: No such file \"$1\""
exit 2
fi
md5=$(md5sum "$1" | cut -d' ' -f1)
cachedir=~/.cache/fbdjview/$md5
function cleanup() {
echo "Cleaning up $cachedir"
rm -rf $cachedir
exit
}
trap cleanup SIGINT
if [ ! -d $cachedir ] ; then
mkdir -p $cachedir
echo -n "Please wait, generating cache in $cachedir ..."
ddjvu -eachpage -scale=150 -format=tiff "$1" $cachedir/page%04d.tif || cleanup
fi
fbi -a $cachedir/page*.tif
The obvious drawback is that it needs to generate the cache for the first viewing of any file and that it uses up disk space for this cache. So, it would be very nice if jfbview supported djvu format natively.
The text was updated successfully, but these errors were encountered:
My current workaround for viewing djvu files on the fb console looks like this:
The obvious drawback is that it needs to generate the cache for the first viewing of any file and that it uses up disk space for this cache. So, it would be very nice if jfbview supported djvu format natively.
The text was updated successfully, but these errors were encountered: