-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] More Image options +[Bug] #19
Comments
Actually there is configuration for that, here is the part of the doc: https://github.com/wustho/baca#opening-an-image
Hmm, I thought I encountered that issue before, but I brushed it off since the feature of showing the cover isn't worth the effort. Will look into it again... thanks for confirming |
This is very helpful, because some e-books can have useful detailed information 4 the reader as drawings, like:
Examples:
I get the image placeholder, but should be better have the filename, because sometimes is a descriptive name, like
Something like this (Mockup):
|
It would be nice if images would be shown using the sixel protocol for terminals that support it, kitty protocol for the kitty terminal, or using ueberzugg. |
More Image options
Right now I think baca do a nice job to show images as ANSI colored blocks, but can be better to have more external options (that should be easy to do). I think is good idea to show images as it's now, but have an option that shows a place holder with the image filename (Example:
[cover.jpg]
) and offer a hotkey to open outside (external). Options:The obvious one, should be use
xdg-open
to open aGUI
(X11/Wayland) viewer of preference (like: nsxiv, imv, feh, imagemagick's display, etc).I did test this inside
multiplexer
(tmux) andTTY
; in TTY the images doesn't have any color, maybe there is a way to improve that. There are other options 4 ANSI colored blocks/ASCII, that works well in GUI and some in TTY (like: aalib, libcaca, viu, chafa, timg, etc). Viu also can use terminal (Kitty, iTerm) features to show images.At last, use
Framebuffer
viewers for TTY (like: fim, fbi, fbvis, jfbview) to have a near GUI image experience in TTY.I think nnn do this very well with plugins like:
preview-tui-ext
,preview-tabbed
,nuke
,imgview
; should be useful because the code is easy to read (I'm no programmer). There is a happy coincidence withgutenread
plugin, that uses epr to read from Project Gutemberg.Maybe this can help you to add some more image options. Can be as simple as custom command, to use a preferred external iamge viewer. Or more complex, like showing image in a new "window pane" or tab (inside a multiplexer).
[Bug]
I did notice that front cover image (
cover.jpg
) was not shown in my tests, I did test with same e-book in epub and azw3 formats. Later I did try with two more epubs, and happens the same, it did skip 1st image (cover).The text was updated successfully, but these errors were encountered: