Just wanted to throw my support for full support of pdf files.
How so?
jpegs are displayed as thumbnails and gramplets (Media Preview and Photo Tagging) inside Gramps. But there isn’t a full view inside the application. Which is probably good … since the OS selected application for the file extension is probably more capable than an internal tool would be.
The Object Editor would certainly benefit from a PDF thumbnail instead of a generic document icon. (And it would be better yet if the page could be specified for the thumbnail.)
Fedora’s “Grid View” with thumbnails.
Although a PDF form inside a view would be useful!
Our Gnome thumbnailer already supports pdf files.
For other operating systems it would be fairly easy to write your own pdf thumbnailer addon.
I’ve got Fedora 37 running Gnome 43.9 desktop and it is providing PDF thumbnails for the OS… but they aren’t showing up in Gramps.
How do I troubleshoot that built-in thumbnailer on Gramps 5.2.1?
Have look in the /usr/share/thumbnailers
directory. It contains files that define how to run the available thumbnailers and what mime types they support.
In my case I have the file evince.thumbnailer
which states that evince supports the application/pdf mime type. Do you have evince installed? I think that it should be a default Gnome package.
[Thumbnailer Entry]
TryExec=evince-thumbnailer
Exec=evince-thumbnailer -s %s %u %o
MimeType=application/vnd.comicbook-rar;application/vnd.comicbook+zip;application/x-cb7;application/x-cbr;application/x-cbt;application/x-cbz;application/x-ext-cb7;application/x-ext-cbr;application/x-ext-cbt;application/x-ext-cbz;application/x-ext-djv;application/x-ext-djvu;image/vnd.djvu;application/x-bzdvi;application/x-dvi;application/x-ext-dvi;application/x-gzdvi;application/pdf;application/x-bzpdf;application/x-ext-pdf;application/x-gzpdf;application/x-xzpdf;application/postscript;application/x-bzpostscript;application/x-gzpostscript;application/x-ext-eps;application/x-ext-ps;image/x-bzeps;image/x-eps;image/x-gzeps;image/tiff;application/oxps;application/vnd.ms-xpsdocument;application/illustrator
Apparently so. Going to my Documents folder shows a Thumbnail in the OS
In Gramps, no thumbnail
In the terminal, I go to the Documents folder and running evince Reno_March_2007.pdf
loads Document Viewer
with:
@Nick-Hall thanks for that tip. I installed evince and now I have thumbnails for pdf files. Do you happen to know offhand of a thumbnailer that handles jp2 (jpeg2000) and rtf files?
FYI, Web API uses pillow
& pdf2image
to generate PDF thumbnails.
The totem thumbnailer handles jp2 files.
I had to edit the file /usr/share/thumbnailers/totem.thumbnailer
and append image/jp2;
to the list of mime types to get it to work. For some reason it was disabled by default (or they forgot to add it to the list).
Is the following in the 2022 GitHub Pull Request 1164 applicable?:
make sure the
is_supported()
method always returnsFalse
if the pymupdf package is not installed
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.