Gallery support for .jpg.webp image format

While grabbing the some Royals web pictures from wikipedia with Firefox, discovered that Gramps does not recognize and thumbnail an emerging standard image format: WebP.

Support for the format was added in the 2.9.2 version of GIMP. In version 2.9.6, the feature set was rounded out.

Could that format be added to the built-in readable image formats?

And while we’re at this, can we support PDF too? Many archives provide scans packed as PDF’s, and they don’t show up in previews.

1 Like

And rtf and text as well?

I suspect that we’re talking 2 different pieces of the pie.

Image formats (like .webp) should be directly supported with internal viewers & have thumbnailing.

But other media file types (like .rtf, .pdf, .mov), should leverage external viewers but have thumbnailing.

Bruce Jackson pushed a commit that adds PDF thumbnailing in June 2022.

A .txt file would be unusual for an attached media object type. Should that be brought in as a Note?

In the 2014 “Is there a Python library to create thumbnails for various document file formats?” Stack Overflow thread, Felix Schwarz said that he wrote his own library (named anythumbnailer, MIT license) and Ajay K. Jain recommended Preview generator, a pypi library.

1 Like