Does Buku support adding images to bookmarks? #845
Replies: 9 comments 1 reply
-
|
At this moment, only the following fields exist:
Additionally, a metadata flag "Immutable" exists, for the purpose of excluding the bookmark from batch updates. I've got some ideas on implementing extended bookmark records by adding support for custom fields (including images, at least as remote URLs); but at the moment there's no such thing and it's probably not gonna be a thing for a while. There is, however, a good chance that I'll be adding support for rendering descriptions as Markdown to the webUI (bukuserver) fairly soon; in which case, it would be possible to include an externally-hosted image. |
Beta Was this translation helpful? Give feedback.
-
|
What do you think about having screenshots of pages with bookmarks that could be viewed in the web UI? I would help with searching. |
Beta Was this translation helpful? Give feedback.
-
|
…Alright, I didn't quite get that. Do you mean some sort of a feature to generate such a screenshot automatically? (And storing such a screenshot in the DB as binary data, I presume?) |
Beta Was this translation helpful? Give feedback.
-
|
Yeah, a feature to generate or get a photo of the page and show it in the web ui with the bookmark, and show the images when searching for bookmarks after entering something in the search bar (I haven't used the web ui, I'm just looking at the screenshots here: https://github.com/jarun/buku/tree/master/bukuserver#readme). |
Beta Was this translation helpful? Give feedback.
-
|
There's a concern of size when storing images in a DB file (though using WebP and smaller resolution reduces the image size, this screenshot converted to WebP would take up about 30Kb… multiply that by the number of bookmarks you're expecting to have, and I give no promises on performance when the file is that large 😅). Using an external site (e.g. Imgur or ImageChest) for hosting images might be a better choice for such a use 🤔 That said, there's also the question of how to take such screenshots. I can name 3 possible solutions here:
I'm guessing it would be possible to implement the 1st and 2nd option (take the screenshot with JS if possible, but allow providing a user-made one as well), but the 3rd one doesn't really seem like a way to go. …Either way, this is unlikely to be supported until/unless I implement extended records. |
Beta Was this translation helpful? Give feedback.
-
|
FYI, here's some proof-of-concept stuff related to this ticket:
This relies on external tools (namely custom userscripts), but it works already, without a need to wait for Buku to support such functionality. …It's not exactly perfect, but as far as taking screenshots is involved it's probably as good as it can get. (TL;DR it uses screen sharing API to take a screenshot… which happens to be much less complicated in Chrome-based browsers than in Firefox and presumably Safari as well) |
Beta Was this translation helpful? Give feedback.
-
|
Using screen sharing api has limited capabilities and support and also share privacy concern Suggesting alternatives
Using html2canvas or domtoimage like js libs that convert html dom to image, supprot png svg jpeg, with jpeg quality can be set to low to have small size image
-> That way we also archived a page, via buku, and can add new feature like offline browsing when no internet server can send this html page to be viewed -> To main point, on server side we can then use any python go libraries, some like -> Then convert pdf to image using image magick So what say on this ?? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
The Atom Syndication Format has element "atom:link" with relation attribute "rel" which can be set with value "enclosure" to indicate of a file, so we can do this by adopting modeling the database in accord with The Atom Syndication Format (RFC 4287). |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
I did some searching and it doesn't seem to.
Beta Was this translation helpful? Give feedback.
All reactions