Bug 200017

Summary: Provide thumbnail preview support for epub, fb2, and the like using Okular generators
Product: [Frameworks and Libraries] kio-extras Reporter: Maciej Pilichowski <bluedzins>
Component: Thumbnails and previewsAssignee: Malte Starostik <malte>
Status: RESOLVED FIXED    
Severity: wishlist CC: claude.sadois, giacomosrv, inkbottle007, kdelibs-bugs, nate, oracle2b
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Unspecified   
Latest Commit: Version Fixed In: 19.04.0

Description Maciej Pilichowski 2009-07-13 12:21:23 UTC
Version:            (using KDE 4.2.90)
Installed from:    SuSE RPMs

I think the summary is self-explanatory, the preview in such case should show the first page. And the pdf is the most popular so dolphin should support it first.
Comment 1 Pino Toscano 2009-07-13 12:23:57 UTC
PDF is there since KDE 3 times. You need the ps/pdf thumbnailer + ghostscript installed.
Comment 2 Claude Sadois 2009-09-07 13:01:44 UTC
I second the creation of previews for archive-like format. cbr, cbz and others are just zip or rar files packed with a bunch of images, being able to see the first image in the archive (at least) would be nice.
Comment 3 Christoph Feck 2010-08-28 21:48:44 UTC
Supported in KDE SC 4.5.0:
- ComicBook (cbr/cbz)
- PDF (see comment #1)
- Mobipocket ebook

Since Okular generators already support many other "ebook" types, it would probably best to create a thumbnailer that uses Okular generators.
Comment 4 Nate Graham 2018-04-13 21:54:59 UTC
We now have PDF support.
Comment 5 Nate Graham 2018-04-13 22:03:39 UTC
*** Bug 302705 has been marked as a duplicate of this bug. ***
Comment 6 Chris 2018-04-17 16:28:18 UTC
We have recently (application 17.12), been "robbed" of Okular functionality consisting of storing continuously and unobtrusively annotations in dedicated XML files in "docdata" directory (plus, your documents could be scattered everywhere on your computer, Okular's docdata was doing the job of keeping track of the what, where and when of your notetaking). It is very unfortunate for people doing extensive note taking. However it is supposed to be by "popular demand" and also because it "makes more sense anyway". The matter is discussed there [https://forum.kde.org/viewtopic.php?t=141963].

However there is a functionality of Okular that might atone this sharp turn: annotations and other Okular metadata can be saved in specific Okulars document archive format, functionality not so well advertised: it took me a while to find out the correct ".okular" file extension (and I lost quite a lot in the process).

This functionality is also a necessity when someone has annotated a DJVU document.

My point related to this thread is, it doesn't seem there is Dolphin's preview associated with this document archive format.
Comment 7 Kai Uwe Broulik 2019-02-07 08:01:20 UTC
Git commit db7e30823b8a26b1f8bec721f2079bed6132a155 by Kai Uwe Broulik.
Committed on 07/02/2019 at 08:00.
Pushed by broulik into branch 'master'.

Add eBook thumbnailer

This can extract thumbnails from epub and fb2 ("fiction book", both zipped and unzipped) files.
FIXED-IN: 19.04.0

Differential Revision: https://phabricator.kde.org/D18738

M  +14   -0    thumbnail/CMakeLists.txt
A  +333  -0    thumbnail/ebookcreator.cpp     [License: LGPL]
A  +45   -0    thumbnail/ebookcreator.h     [License: LGPL]
A  +9    -0    thumbnail/ebookthumbnail.desktop

https://commits.kde.org/kio-extras/db7e30823b8a26b1f8bec721f2079bed6132a155