TagStudio icon indicating copy to clipboard operation
TagStudio copied to clipboard

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

Open Heiholf opened this issue 1 year ago • 2 comments

Checklist

  • [X] I am using an up-to-date version.
  • [X] I have read the documentation.
  • [X] I have searched existing issues.

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):

  • [x] .mscz (MuseScore)
  • [ ] .odf .odp .ods .odt .odg (LibreOffice/OpenOffice)
  • [ ] .ora (OpenRaster Qronikarz)
  • [ ] .kra (Krita blipdrifter)

Alternatives

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

Heiholf avatar Aug 23 '24 12:08 Heiholf

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?

Qronikarz avatar Aug 23 '24 18:08 Qronikarz

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

blipdrifter avatar Sep 07 '24 18:09 blipdrifter

Hi, are .kra file types supported? I see the issue is closed, but there are no thumbnails for me on Krita projects.

FreeCap23 avatar Jul 05 '25 14:07 FreeCap23

Hi, are .kra file types supported? I see the issue is closed, but there are no thumbnails for me on Krita projects.

It seems that the PR that closed the issue (#545) was only for OpenDocument type files.

purpletennisball avatar Jul 05 '25 17:07 purpletennisball

Should this issue be re-opened or should a new one be created?

FreeCap23 avatar Jul 05 '25 17:07 FreeCap23

A new issue would be better - and it should be trivial to add .kra and .ora thumbnail support if they have a similar zip file structure, I'll just need to get my hands on some example files

CyanVoxel avatar Jul 05 '25 18:07 CyanVoxel