[Feature Request]: Add general thumbnail support for file types with thumbnails in zip file (i.e. Libre-/OpenOffice)
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
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.
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?
Krita project images (.kra) also have the thumbnail and full image embedded inside them as well, similar to OpenRaster, for the record
Hi, are .kra file types supported? I see the issue is closed, but there are no thumbnails for me on Krita projects.
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.
Should this issue be re-opened or should a new one be created?
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