TagStudioDev / TagStudio

A User-Focused Photo & File Management System
https://docs.tagstud.io/
GNU General Public License v3.0
5.2k stars 373 forks source link

[Feature Request]: Add general thumbnail support for file types with thumbnails in zip file (i.e. Libre-/OpenOffice) #379

Open Heiholf opened 2 months ago

Heiholf commented 2 months ago

Checklist

Description

LibreOffice files only show up as icons image

Solution

As described in #363 the thumbnails are part of the file. The file is stored as a zip and the thumbnail is stored under "Thumbnails/thumbnail.png".

It would be quite easy to do the same as #366 for these files. However, as there are probably more files like these it might be useful to bundle the functionality for file types with this structure.

I don't know how easy it is right now or if it is more useful to wait until thumbnails is merged into main.

Some file types which have this kind of pattern are (some where added afterwards):

Alternatives

Alternatively, one could handle all of these files individually which would create an unnecessary amount of repetition in the code.

Qronikarz commented 2 months ago

So .ora images work the same way. Good to know.

More info about .ora https://github.com/orgs/linuxmint/discussions/562

tl;dr Multi layered image format for image editors. Used for example in Pinta.

Would you mind adding it to the list?

blipdrifter commented 2 months ago

Krita project images (.kra) also have the thumbnail and full image embedded inside them as well, similar to OpenRaster, for the record