D18883: Add PDF thumbnailer
Kai Uwe Broulik
noreply at phabricator.kde.org
Sat Feb 9 18:09:34 GMT 2019
broulik created this revision.
broulik added reviewers: dfaure, aacid, jtamate.
Herald added projects: Dolphin, Frameworks.
Herald added subscribers: kfm-devel, kde-frameworks-devel.
broulik requested review of this revision.
REVISION SUMMARY
This adds a PDF thumbnailer using libpoppler.
There is one in kdegraphics-thumbnailers but that one (as far as I could understand the old (fork+exec etc) and convoluted code) relies on an external `gs` binary to generate the thumbnails and is pretty slow.
This one is just 40 lines of code and would get people PDF thumbnails out of the box.
TEST PLAN
Disabled gsthumbs from kdegraphics-thumbnailer, still got neat little PDF thumbnails
EPS files can be generated using KImageFormats (cf D18882 <https://phabricator.kde.org/D18882>) so the only bits missing from kdegraphics-thumbnailers (which isn't installed by default on most distros) is DVI and ghostscript files (and RAW files).
REPOSITORY
R320 KIO Extras
REVISION DETAIL
https://phabricator.kde.org/D18883
AFFECTED FILES
thumbnail/CMakeLists.txt
thumbnail/pdfcreator.cpp
thumbnail/pdfcreator.h
thumbnail/pdfthumbnail.desktop
To: broulik, dfaure, aacid, jtamate
Cc: kde-frameworks-devel, kfm-devel, alexde, feverfew, michaelh, spoorun, navarromorales, firef, ngraham, andrebarros, bruns, emmanuelp, mikesomov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190209/9c32f10f/attachment.html>
More information about the Kde-frameworks-devel
mailing list