! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Directory thumbnails implemented
Status:
RESOLVED: DUPLICATE

Comments

Description Anatoly Asviyan 2009-11-02 18:29:22 CET
Created attachment 2649 
patch to add directory thumbnails

I've implemented directory thumbnails for Thunar. 

The idea is following: 
Whenever Thunar looks up thumbnail for directory, it checks if image file
"directory/.DirThumb" exists. If so, Thunar composes content of .DirThumb over
direcory icon from current icon theme.

To make creation of directory thumbnails easy, I've made a simple script that
takes file name, fetches its thumbnail and saves it as .DirThumb in the same
directory. I've bound it as user action for media, image and other files.

Here is a video of how it looks in reality
http://aanatoly.blogspot.com/2009/11/thunar-with-directory-thumbnails.html


Performance: all images are cached, so image loading and compositing done once
per directory per icon size. However, lstat syscall is done on every lookup.
Need more work here.
Comment 1 Anatoly Asviyan 2009-11-02 18:33:14 CET
Created attachment 2650 
creates directory thumbnail (.DirThumb) from file's thumbnail
Comment 2 Nick Schermer editbugs 2012-09-26 10:26:15 CEST

*** This bug has been marked as a duplicate of bug 3508 ***

Bug #5945

Reported by:
Anatoly Asviyan
Reported on: 2009-11-02
Last modified on: 2012-09-26

People

Assignee:
Jannis Pohlmann
CC List:
1 user

Version

Attachments

patch to add directory thumbnails (6.51 KB, patch)
2009-11-02 18:29 CET , Anatoly Asviyan
no flags
creates directory thumbnail (.DirThumb) from file's thumbnail (249 bytes, application/octet-stream)
2009-11-02 18:33 CET , Anatoly Asviyan
no flags

Additional information