Otter-shell · #149

otter-files does not seem to use local thumbnailers

CompletedBug2 votes2 commentsby tomothy

Some files like .kra (krita) files by default do not have thumbnail previews. However, for other file explorers you can add a command that runs in ~/.local/share/thumbnailers. command by itself unzip -p (file).kra preview.png > out.png has been tested and returns a viewable image. Having the thumbnailer file also lets dolphin correctly generate .kra thumbnails.

I have also tried increasing remote thumbnail limit to 48 mb and thumbnail cache limit to 256 MB.

Image is dolphin on top, otter-files on bottom.

Bug report

Steps to reproduce

Create the following in ~/.local/share/thumbnailers/krita.thumbnailer

[Thumbnailer Entry]
TryExec=/bin/bash
Exec=/bin/bash -c "unzip -p %i preview.png > %o"
MimeType=application/x-krita;

delete thumbnail cache, restart computer, it doesn't matter open otter-files and open a folder that contains a .kra

Expected behavior

otter-files shows .kra files with a thumbnail preview

Actual behavior

no thumbnail is generated

Environment

7.2.6 Pika OS 4 Niri

Discussion

Ferreo

Done in otter-files v0.12.1.

Krita .kra files now reach registered application/x-krita thumbnailers. Bounded embedded previews are decoded before resizing. Integration with a registered thumbnail helper passes.

Release and verification report. Source changes and selective Zenith pins are pushed.

Ferreo

Published to Cockatiel in Otter 0.12.1-101pika1. The selective release build succeeded with publication enabled; the new application and required shared library versions are in the public repository, with package download URLs verified.

Successful Cockatiel release build. Marking completed.

Sign in with Discord to comment.