Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Producing thumbnails for unsupported file types #776

Open
alphastrata opened this issue Jan 28, 2025 · 2 comments
Open

Producing thumbnails for unsupported file types #776

alphastrata opened this issue Jan 28, 2025 · 2 comments

Comments

@alphastrata
Copy link

As the title suggests, assuming I already have a cli app that can generate thumbnails as .png(s) for my .gltf and .obj files, can I (presumably md5 hash?) rename them and slap them in the ~/.cache/thumbnails/small|normal|large and expect cosmic-files to pick them up?

I had a quick go at doing some manually, to no avail.

This would likely be too large a PR to add the functionality to generate thumbnails for obscure file formats (obscure to most).

Can any of the devs shed some light on this?

@jackpot51
Copy link
Member

cosmic-files supports external thumbnailers, see this for details:

https://askubuntu.com/questions/1368910/how-to-create-custom-thumbnailers-for-nautilus-nemo-and-caja

@Hyperchaotic
Copy link

Thank you @jackpot51, I had just been wondering about GIMP XCF files. I installed imagemagik and created .local/share/thumbnailers/xcf.thumbnailer:

[Thumbnailer Entry]
TryExec=convert
MimeType=image/x-xcf;image/x-compressed-xcf;
Exec=convert %i -alpha on -background none -flatten -resize x%s %o

I get thumbnails in Nautilus, though not in cosmic-files. The thumbnails are located in ~/.cache/thumbnails/large

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants