Skip to content

Thumbnails on file managers #834

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

Open
2 of 5 tasks
dacap opened this issue Oct 22, 2015 · 17 comments
Open
2 of 5 tasks

Thumbnails on file managers #834

dacap opened this issue Oct 22, 2015 · 17 comments
Labels
feature Feature request, or something should be improved high priority native
Milestone

Comments

@dacap
Copy link
Member

dacap commented Oct 22, 2015

It would be nice to show thumbnails of .aseprite files on OS X Finder, Windows Explorer, and whatever Ubuntu uses. (related to #321)

We provide external plugins here: https://www.aseprite.org/thumbnails/ (these can be installed freely without installing Aseprite).

@dacap dacap added the native label Oct 22, 2015
@rautesamtr
Copy link
Contributor

Notes on thumbnails on linux:

Generally there exists the Freedesktop Thumbnail Managing Standard which should be followed. In short thumbails are kept in the $XDG_CACHE_HOME/thumbnails which defaults to ~/.cache/thumbnails if $XDG_CACHE_HOME is not set. There are two thumbnail sizes, large (256x256) and small (128x128). Files are png with some extra attributes like path to original file and last modified. The filename is a md5 hash on the uri of the original file.

To get a thumbnail generator on Ubuntu/Gnome you just have to write a entry file in .../share/thumbnailers
here as example of evince thumbnailer for pdf:

[Thumbnailer Entry]
TryExec=evince-thumbnailer
Exec=evince-thumbnailer -s %s %u %o
MimeType=application/pdf;application/x-bzpdf;application/x-gzpdf;

KDE seems to use something similar located in .../share/kservices5/

Short solution for this probably is to extend aseprites command line mode with a xdg thumbnailer mode, which would solve thumbnail generation outside of the app usage. Those thumbnailers normally are only called when a folder containing the files to be thumbnailed is opened with the file browser.

So there is still need to handle thumbnail generation from within aseprite when using a native linux file dialog.
Ignoring KDE as target platform, it is the possibility to just use GnomeDesktopThumbnailFactory for thumbnail management but that creates a dependencie on libgnome-desktop.

Then there is also tumbler which makes thumbnail management available over dbus according to this spec draft. While sounding nice, it seems to be the only thumbnailer that implements those so far.

But it is probably best to implement a independent thumbnail management in aseprite to prevent having any strong platform specific (Gnome, KDE, XFCE etc..) dependencies.

@dacap dacap added the feature Feature request, or something should be improved label Dec 12, 2016
@elvisish
Copy link

Hows this going for windows?

@dacap
Copy link
Member Author

dacap commented May 12, 2017

@elvisish I'm not working on this at the moment, but I might give some priority to this (I'd love to see thumbnails on Windows File Explorer and macOS Finder too)

@hadess
Copy link

hadess commented Jul 20, 2017

To create a thumbnailer for GNOME, LinuxMint and MATE, you just need to create a binary that can transform the file to a PNG, and a file to declare how it's called.

See the Description section of:
https://developer.gnome.org/gnome-desktop3/stable/GnomeDesktopThumbnailFactory.html
which explains how to create those files, and where they should be installed.

@dacap dacap self-assigned this Jul 20, 2017
@dacap dacap added this to the v1.2 milestone Jul 20, 2017
@dacap dacap modified the milestones: v1.2, v1.3 Sep 12, 2017
@dacap
Copy link
Member Author

dacap commented Dec 30, 2017

I'm working on this one for Windows as first step (I already have something working in my local copy). It needs some cleanup and will upload the changes soon.

@elvisish
Copy link

elvisish commented Jan 2, 2018

Really looking forward to it!

@dacap
Copy link
Member Author

dacap commented Jan 2, 2018

I've just released a little beta to get thumbnails on Windows Explorer (this should be included with Aseprite in a near future version):

https://www.aseprite.org/thumbnails/

Commit: 1898ce2

@elvisish
Copy link

elvisish commented Jan 2, 2018

@dacap thanks for that! I just tried it, and I'm still getting the aseprite logo. I have SageThumbs installed to show Photoshop thumbnails, is there any known conflicts between this and SageThumbs? Also, does windows need restarting? I'm on Windows 7 x64.

@dacap
Copy link
Member Author

dacap commented Jan 2, 2018

I don't know SageThumb. It might have some kind of conflict because Photoshop use .ase as one of their file format. Try renaming to .aseprite and see if the thumbnail appears or restart windows just in case then.

@elvisish
Copy link

elvisish commented Jan 2, 2018

For both .ase and .aseprite, it just has the default aseprite logo. I'll try restarting...

@elvisish
Copy link

elvisish commented Jan 2, 2018

Tried restarting, still just shows the default logo; SageThumbs doesn't actually have .ase listed as one of it's file types, so I'm not sure it's even enforcing a thumbnail. @dacap can you confirm it works on Windows 7?

@elvisish
Copy link

elvisish commented Jan 2, 2018

Hmm, it still isn't showing. Neither .ase nor .aseprite are listed in SageThumbs as extensions, so I'm not sure it's actually enforcing any thumnbails itself. Can you confirm it works on Windows 7?

@elvisish
Copy link

elvisish commented Apr 1, 2018

I'm still not able to see thumbnails but I need SageThumbs for Photoshop thumbnails and I'm unsure if it's clashing or just my problem. Is there any way of manually generating thumbnails?

@dacap
Copy link
Member Author

dacap commented Apr 1, 2018

@elvisish can you uninstall sagethumbs temporally and try my extension to check if it works? In other case, try using the .aseprite extension in your files instead of .ase

@dacap dacap removed their assignment Sep 15, 2022
@dacap dacap self-assigned this Dec 7, 2022
@dacap dacap removed their assignment Dec 12, 2022
@mrbrownjeremy
Copy link

mrbrownjeremy commented Jan 1, 2025

[macOS Sequoia 15.2] This worked for me at some point, but stopped (possibly as a result of a system update). I've restarted and made sure that Show icon preview is toggled on (works with Illustrator files in the same folder). (also posted to Aseprite Community Bug Reports)
25_0101 080957 Finder Aseprite Thumbnails not showing

@Paperdomo101
Copy link

[macOS Sequoia 15.2] This worked for me at some point, but stopped (possibly as a result of a system update). I've restarted and made sure that Show icon preview is toggled on (works with Illustrator files in the same folder). (also posted to Aseprite Community Bug Reports)

I second this issue. It appears that on macOS Sequoia apple has fully deprecated this QuickLook API in favor of this one, which means .qlgenerator programs no longer work.

@dacap dacap moved this to Todo in Aseprite v1.3.x Feb 17, 2025
@dacap dacap self-assigned this Feb 17, 2025
@dacap dacap removed their assignment Feb 17, 2025
@dacap dacap removed this from Aseprite v1.3.x Feb 17, 2025
@dacap
Copy link
Member Author

dacap commented Feb 17, 2025

@Paperdomo101 I've just created #5009 to give some priority to implement the thumbnailer with the new API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request, or something should be improved high priority native
Projects
None yet
Development

No branches or pull requests

6 participants