Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
1
votes
2
answers
1954
views
How to correlate thumbnail to its file?
I have a `xcf` file which is corrupted and can't be recovered but it still has thumbnail which is large enough for me. I checked `~/.thumbnails` to get it to my home folder but there are 9900 files (I guess they are named with md5) and I can't check them all. I'm using Xubuntu 14.04. How can I get t...
I have a
xcf
file which is corrupted and can't be recovered but it still has thumbnail which is large enough for me. I checked ~/.thumbnails
to get it to my home folder but there are 9900 files (I guess they are named with md5) and I can't check them all.
I'm using Xubuntu 14.04. How can I get the corresponding thumbnail.png
of a file?
Valamor
(11 rep)
Sep 23, 2015, 08:53 AM
• Last activity: Aug 2, 2025, 10:05 AM
0
votes
1
answers
29
views
no djvu thumbnails on thunar with tumbler
I am no getting thumbnails for djvu when using thunar and tumbler to generate the thumbnails. I am getting thumbnails for pdf files, images and videos. Only djvu thumbnails are missing.
I am no getting thumbnails for djvu when using thunar and tumbler to generate the thumbnails.
I am getting thumbnails for pdf files, images and videos. Only djvu thumbnails are missing.
Vicfred
(294 rep)
May 21, 2025, 08:54 AM
• Last activity: Jun 4, 2025, 05:55 PM
4
votes
3
answers
3703
views
How to force thumbnail refresh in PCmanFM
How can I force `pcmanfm` to refresh its thumbnails. I have a directory of photos in JPG format, (taken with iphone). I have rotated some of these using Ubuntu Image Viewer. When I rotate the image the thumbnail does not update. How can I force it to update? I have tried deleting all thumbnails form...
How can I force
pcmanfm
to refresh its thumbnails. I have a directory of photos in JPG format, (taken with iphone). I have rotated some of these using Ubuntu Image Viewer. When I rotate the image the thumbnail does not update. How can I force it to update?
I have tried deleting all thumbnails form ~/.cache/thumbnails
and selecting "reload folder" in pcmanfm
but no joy. Any suggestions? Where are the thumbnails actually stored?
Using pcmanfm 1.2.4 on Ubuntu 16.04.
Ron
(141 rep)
Dec 29, 2017, 03:30 PM
• Last activity: May 2, 2025, 12:02 AM
0
votes
0
answers
28
views
Nemo generates thumbnails in icon view from end not top
That is rather frustrating. I've tried to use icon view as default in `Nemo` to quickly get a glimpse of what kind of images a folder contains, but Nemo shows (generates?) thumbnails in icon view from the end, not top. Whereas in list view I see it starts to show thumbnails from top and go to the bo...
That is rather frustrating. I've tried to use icon view as default in
Nemo
to quickly get a glimpse of what kind of images a folder contains, but Nemo shows (generates?) thumbnails in icon view from the end, not top. Whereas in list view I see it starts to show thumbnails from top and go to the bottom (just noticed that while investigating). So it is faster for the purpose to have list view as default and switch to icon view after opening the folder. Any idea for the reason? Where can I see it in settings/code and fix? TIA
Nemo 5.4.2, Linux Mint 21.
Alex Martian
(1287 rep)
Mar 18, 2025, 08:39 AM
2
votes
2
answers
5753
views
How to generate thumbnails/previews for files?
I wrote an app for Windows and macOS and I am in the process of porting it to Linux. My app has a file browser implemented and can display thumbnails or document icons of files. On Windows I get access to the file thumbnails (or document icons if there is no thumbnail support) through the shell exte...
I wrote an app for Windows and macOS and I am in the process of porting it to Linux. My app has a file browser implemented and can display thumbnails or document icons of files.
On Windows I get access to the file thumbnails (or document icons if there is no thumbnail support) through the shell extensions.
On MacOS I can generate the thumbnails (or document icons) through QuickLook.
On Linux, what would be the way to go to...
1... generate a thumbnail e.g. for JPEGs, PNGs
2... fallback to extract document icons for the file if no thumbnail is available?
Thank you!
HelloWorld
(121 rep)
Jun 12, 2021, 01:04 PM
• Last activity: Nov 13, 2024, 07:40 PM
1
votes
2
answers
1919
views
How to repair Corrupted jpeg file that still get their thumbail done correctly?
I've got a bunch of photos that were on an SD card. Most of them are corrupted now, I cannot open them in any program (Gwenview, Gimp, on windows too...) But every file browser still can correctly make most of their thumbnail. for instance : [Gwenview with a photo selected that have a correct thumbn...
I've got a bunch of photos that were on an SD card.
Most of them are corrupted now, I cannot open them in any program (Gwenview, Gimp, on windows too...) But every file browser still can correctly make most of their thumbnail. for instance :
I'm aware that the SD card is probably dying, so I already made a dd image of the sd card, on which I can work.
So far, My searches led me to photorec which does not work in my case: it recovered 4 useless photos and as about two/third of my ~400 still have their thumbnail, I still hope to have most of those back.
What Can I do?
Any help appreciated :)
PS: I'm on Kubuntu 20.04, I'm able to be root and I'm not afraid of the command line (but a graphical tool is still handy :D )

A. Ocannaille
(123 rep)
Apr 27, 2020, 04:15 PM
• Last activity: Nov 11, 2024, 06:41 AM
4
votes
1
answers
3516
views
Display Thumbnails In Icon View But Not In Compact View
I use Nemo file manager on Linux Mint 19 Tara. Usually I only work with the compact view without thumbnails (see image A), but occasionally I switch to icon view with thumbnails (see image B). To switch from A to B I have to 1. Open the settings 2. Enable thumbnails 3. Change to icon view and to swi...
I use Nemo file manager on Linux Mint 19 Tara. Usually I only work with the compact view without thumbnails (see image A), but occasionally I switch to icon view with thumbnails (see image B).
To switch from A to B I have to
1. Open the settings
2. Enable thumbnails
3. Change to icon view
and to switch back from B to A
4. Open the settings
5. Disable thumbnails
6. Change to compact view
I'd like switch by just clicking the icon view (see image 3) or compact view (see image 6) buttons in the toolbar so that I have to click only once instead of seven times.
**Q:** Is there a way to enable thumbnails only in icon view?
I already checked for hidden dconf settings but couldn't find any. Maybe there is a plugin for what I need or a simple way to write one.
**Possible workarounds which would also be acceptable:**
- A toolbar button to toggle thumbnails on/off.
- Enable thumbnails only for icon sizes > ??px. I always use small icons in compact view and bigger icons/thumbnails in icon view.
**I'm _not_ interested in**
- showing thumbnails only in certain directories or for certain file types.
- using another file manager.
This question is tagged as [tag:nautilus] since Nemo is a fork of Nautilus. If there is a solution for Nautilus please post it. I may be able to use that solution for Nemo too.

Socowi
(645 rep)
Nov 27, 2018, 10:51 AM
• Last activity: Nov 7, 2024, 08:29 AM
0
votes
1
answers
502
views
How to restore SELinux context for home directory?
I installed fresh new Fedora 41 Xfce with /home/kuba directory in different partition from Fedora updated since version 35. The upgrade failed (maybe because I deleted pulsesecure without uninstalling it, to make some space for the new packages). How I have errors from SELinux: ``` type=AVC msg=audi...
I installed fresh new Fedora 41 Xfce with /home/kuba directory in different partition from Fedora updated since version 35. The upgrade failed (maybe because I deleted pulsesecure without uninstalling it, to make some space for the new packages).
How I have errors from SELinux:
type=AVC msg=audit(1730469601.380:2566): avc: denied { write } for
pid=3495014 comm="pool-tumblerd" name="normal" dev="sda5"
ino=91488302 scontext=unconfined_u:unconfined_r:thumb_t:s0-
s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=dir permissive=0
The localized message looked like this (not sure how to get original locale in GUI):
SELinux powstrzymuje /usr/lib64/tumbler-1/tumblerd przed dostępem write w katalog normal.
I want to restore the home directory into proper state, how can I do this. I've tried:
sudo semanage fcontext -a -t home_root_t "/home/kuba(/.*)?"
sudo semanage fcontext -a -t user_home_t "/home/kuba(/.*)?"
## this one gives an error
sudo semanage fcontext -a -t thumb_t "/home/kuba(/.*)?"
sudo restorecon -Rv /home/kuba
But still, I don't have thumbnails on image files downloaded from Google Drive or send via Bluetooth.
How can I restore and add proper SELinux context to my home directory, so I don't get SELinux errors?
jcubic
(10310 rep)
Nov 1, 2024, 02:08 PM
• Last activity: Nov 2, 2024, 05:42 PM
7
votes
2
answers
3975
views
How to get larger thumbnails in dolphin
How can I increase the maximal size (when enlarging them with Ctrl + ) and resolution of thumbnails in dolphin? If not, is there any other file manager which supports larger thumbnails than dolphin to preview pdf's and djvu's?
How can I increase the maximal size (when enlarging them with Ctrl +) and resolution of thumbnails in dolphin? If not, is there any other file manager which supports larger thumbnails than dolphin to preview pdf's and djvu's?
student
(18865 rep)
Sep 7, 2013, 06:49 PM
• Last activity: Jul 14, 2023, 09:57 PM
1
votes
0
answers
889
views
troubleshoot nautilus thumbnails on SMB share
I need some help understanding how the thumbnail process works with Gnome Nautilus. I am running Gnome 43.2 with nautilus 43.1 on Manjaro Linux. Other computers show file thumbnails just fine on my home server (debian) shares. This one - a recent install - does not. Thumbnails are generated OK local...
I need some help understanding how the thumbnail process works with Gnome Nautilus. I am running Gnome 43.2 with nautilus 43.1 on Manjaro Linux.
Other computers show file thumbnails just fine on my home server (debian) shares. This one - a recent install - does not. Thumbnails are generated OK locally, the dconf
/org/gnome/nautilus/preferences/show-image-thumbnails
is set to always
.
Now the most interesting and annoying thing. If I open the folder with gThumb
viewer - that generates thumbnails AND the thumbnails can be also seen in nautilus (albeit they are smaller than the standard ones created by nautilus locally.
I tried to execute gdk-pixbuf-thumbnailer
in a terminal window that is opened on that share - that works and it can create the output file. Presumably something is wrong with the particular thumbnailer executed by nautilus, but how to find which it is and how it works?
By the way - I installed thunar too - and it does NOT generate thumbnails either locally or on the smb share.
r0berts
(740 rep)
Dec 25, 2022, 03:03 PM
0
votes
2
answers
1056
views
No thumbnails in GNOME files on a Guix system
GNOME Files (Nautilus) fails to generate thumbnails on an up-to-date Guix system, which is a [known outstanding issue][1]. Small empty files just go to `~/.cache/thumbnails/fail/gnome-thumbnail-factory`. While this is being debugged and fixed, is there another way to browse files with thumbnails bei...
GNOME Files (Nautilus) fails to generate thumbnails on an up-to-date Guix system, which is a known outstanding issue . Small empty files just go to
~/.cache/thumbnails/fail/gnome-thumbnail-factory
. While this is being debugged and fixed, is there another way to browse files with thumbnails being displayed?
Roman Riabenko
(2436 rep)
Mar 8, 2022, 07:57 AM
• Last activity: May 24, 2022, 07:24 PM
4
votes
2
answers
2223
views
Is there an approach to have feh --thumbnails do not display filename?
I have many pictures which are screen shots created from shutter and downloaded from web. These pictures have long file names. When I create thumbnails on these pictures via `feh -t`, these long file name will prevent `feh` to display many pictures in one row. And I did not find a solution for this...
I have many pictures which are screen shots created from shutter and downloaded from web. These pictures have long file names. When I create thumbnails on these pictures via
feh -t
, these long file name will prevent feh
to display many pictures in one row.
And I did not find a solution for this on the feh
man page. What can
I do to display many pictures in a row?
David Young
(81 rep)
Feb 22, 2014, 04:22 PM
• Last activity: Apr 11, 2022, 09:03 PM
2
votes
2
answers
1267
views
How to remove the thumbnail frame in Nautilus?
I mean the gray border around thumbnails in icon view. The file `thumbnail_frame.png` is not present in `/usr/share/pixmaps/`, not even a nautilus folder. I have Ubuntu Gnome 17.04.
I mean the gray border around thumbnails in icon view.
The file
thumbnail_frame.png
is not present in /usr/share/pixmaps/
, not even a nautilus folder.
I have Ubuntu Gnome 17.04.
cristian mos
(121 rep)
Apr 21, 2017, 11:43 AM
• Last activity: Mar 18, 2022, 09:13 AM
1
votes
1
answers
407
views
How to use the shared thumbnail repository?
[Freedesktop.org][1] states that .sh_thumbnails folder is used for shared thumbnails so that a thumbnail is only generated once for mutually used files. I copied my thumbnails to that folder in a USB drive and altered those images so that I know the shared thumbnails are used but it generated thumbn...
Freedesktop.org states that .sh_thumbnails folder is used for shared thumbnails so that a thumbnail is only generated once for mutually used files. I copied my thumbnails to that folder in a USB drive and altered those images so that I know the shared thumbnails are used but it generated thumbnails again and didn't use the ones I put in the .sh_thumbnails.
Note: I cleaned the thumbnail cache in advance. I tried using Thunar and PCManfm
Enes Doğan
(25 rep)
Nov 25, 2021, 04:05 PM
• Last activity: Nov 25, 2021, 06:01 PM
0
votes
1
answers
1366
views
How to show the attached image as the mkv thumbnail?
I have mkv files with covers attached to them. How do I get to show them (when they are there) as the thumbnails in my file manager instead of a random frame ffmpegthumbnailer is usually does? I know some distributions that have this set up. Is it possible to configure a .thumbnailer file to do this...
I have mkv files with covers attached to them. How do I get to show them (when they are there) as the thumbnails in my file manager instead of a random frame ffmpegthumbnailer is usually does? I know some distributions that have this set up. Is it possible to configure a .thumbnailer file to do this or is this bounded to a more 'bloated' file manager?
I generally use Thunar, PCManFM and SpaceFM.
João Victor Bateli Romão
(3 rep)
Jun 24, 2020, 11:53 PM
• Last activity: Jun 25, 2020, 01:18 AM
0
votes
1
answers
267
views
How could one, given a thumbnail image in ~/.cache/thumbnails, find the originally thumbnailed image?
I understand that Thunar utilizes [`tumbler`](https://docs.xfce.org/xfce/thunar/tumbler) to generate thumbs, and I know these thumbs exist on my system in `~/.cache/thumbnails`. My goal is to write a script to check for the existence of a thumbnail on-disk for a given image or PDF. This script would...
I understand that Thunar utilizes [
tumbler
](https://docs.xfce.org/xfce/thunar/tumbler) to generate thumbs, and I know these thumbs exist on my system in ~/.cache/thumbnails
.
My goal is to write a script to check for the existence of a thumbnail on-disk for a given image or PDF. This script would be used in a workflow for quickly manipulating bulk-scanned paper documents and other images in a custom web UI.
Is there a clever way to reverse-lookup the thumbnail and make a copy, so I don't need to invoke a library to re-generate for my purposes?
Filenames are obscure number-strings.
I'm using Thunar on Debian 10.
kfrz
(111 rep)
Apr 12, 2020, 05:30 AM
• Last activity: Apr 12, 2020, 05:34 AM
1
votes
1
answers
260
views
Recursive thumbnail creation to different destination
I wish to show my photo collection on my television. In order to do this, I need to resize the photos to fit in a 1920x1080px window (because the performance is awful when dealing with the originals). My intended structure is: ``` /path/to/originalphotos/ /path/to/originalphotos/2016/2016-01-01 Desc...
I wish to show my photo collection on my television. In order to do this, I need to resize the photos to fit in a 1920x1080px window (because the performance is awful when dealing with the originals).
My intended structure is:
/path/to/originalphotos/
/path/to/originalphotos/2016/2016-01-01 Description/DSC_1234.JPG
/path/to/originalphotos/2019/2019-12-31 Description/DSC_5678.JPG
/path/to/thumbnails/
/path/to/thumbnails/2016/2016-01-01 Description/DSC_1234_thumb.JPG
/path/to/thumbnails/2019/2019-12-31 Description/DSC_5678_thumb.JPG
I am trying to create a script that loops through /path/to/originalphotos/
and creates a thumbnail (using Imagemagick's convert
utility) of every .JPG
-file in the corresponding subdirectory.
So far, my Bash script looks like this:
#!/bin/bash
SOURCE_PATH="/path/to/originalphotos/"
DESTINATION_PATH="/path/to/thumbnails/"
find "$SOURCE_PATH" -type f -iname '*.jpg' -exec sh -c 'echo convert \"$1\" -auto-orient -resize 1920x1080\> --write \"$DESTINATION_PATH${0%}_thumb.JPG\"' -- {} \;
*Note that I added echo
to avoid saving any data.*
Can you provide any help to store the thumbnails correctly?
I have a gut feeling that I will encounter issues later on as some of my folder names contain special Danish characters (Æ, Ø, Å).
Kristian
(699 rep)
Jan 25, 2020, 10:01 AM
• Last activity: Jan 25, 2020, 11:25 AM
0
votes
1
answers
200
views
Supporting new digital cameras Raw files on Linux
This is general question about digital camera raw files. I want to know which software is responsible for rendering the thumbnails. I have Fedora and have this file /usr/share/thumbnailers/ufraw.thumbnailer that show /usr/bin/ufraw-batch but UFRaw is old last update was in 2015 according to website...
This is general question about digital camera raw files. I want to know which software is responsible for rendering the thumbnails.
I have Fedora and have this file /usr/share/thumbnailers/ufraw.thumbnailer that show /usr/bin/ufraw-batch but UFRaw is old last update was in 2015 according to website http://ufraw.sourceforge.net/
so other library must adding support for newest cameras, I have Nikon d750 that works fine but it was released at the end 2014. Does it mean that new cameras are not supported by UFraw and they don't show thumbnails?
I'm asking this because I plan to buy point and shoot camera (Nikon **Coolpix A900**) and it's pretty new. I would like to send the raw file so someone will add support for this files.
Will this camera work with Linux? I mainly use **Gnome** and **Darktable** (for the second one I can send the samples raw files and I will when I get the camera).
So to sum up, my question is **how raw files are handled in Gnome based Linux distribution and how new cameras support are added** (I'm asking mainly about Fedora but general answer may be more useful to future readers)?
I can't find this information, I've found this library https://www.libraw.org/ but it don't say that UFraw is using it.
jcubic
(10310 rep)
Jul 5, 2019, 08:18 AM
• Last activity: Jul 10, 2019, 03:33 PM
0
votes
1
answers
1304
views
How to make xfdesktop refresh thumbnails in XFCE?
Before upgrading to Fedora 29 from Fedora 28, I've noticed that my `.thumbnails` directory was approaching 3GB. I've decided to delete all the thumbnails, thinking applications needing thumbnails would re-generate them on first request. It seems that has worked to some extent (the folder is slowly f...
Before upgrading to Fedora 29 from Fedora 28, I've noticed that my
.thumbnails
directory was approaching 3GB.
I've decided to delete all the thumbnails, thinking applications needing thumbnails would re-generate them on first request.
It seems that has worked to some extent (the folder is slowly filling with thumbnails again), but on my desktop (XFCE's xfdesktop) isn't showing them.
When refreshing the desktop with F5, that doesn't work, and installing tumbler-extras
didn't work either.
I'm now wondering how or if I can force xfdesktop to re-generate thumbnails and keep generating them when a new file is being dropped onto the desktop.
Or perhaps there is an entirely different solution which I'm not aware of.
polemon
(11921 rep)
Nov 5, 2018, 01:29 AM
• Last activity: Mar 20, 2019, 09:27 AM
5
votes
3
answers
3609
views
Use default application as file thumbnail in Mint's file browser
In Mint's default file browser (which is Nemo, as far as I know), I'd like to set the icon of the default application for a certain file type as the thumbnail for all files of this file type. For example I'd like all `.odt` files to have the icon of the LibreOffice Writer as their thumbnail, and all...
In Mint's default file browser (which is Nemo, as far as I know), I'd like to set the icon of the default application for a certain file type as the thumbnail for all files of this file type. For example I'd like all
.odt
files to have the icon of the LibreOffice Writer as their thumbnail, and all .pdf
files to have the icon of the respective PDF editor. What is the best way to accomplish this?
Raven
(813 rep)
Dec 4, 2016, 06:27 PM
• Last activity: Dec 16, 2017, 10:17 AM
Showing page 1 of 20 total questions