I created some thumbnailers for Krita (.kra), Gimp (.xcf), OpenRaster (.ora) and Adobe Photoshop (.psd) files and added them to my Ubuntu PPA as the package mmolch-thumbnailers. They use xcf2png, unzip and imagemagick behind the scenes and are used by most GTK based file managers (Nautilus, Nemo, PCManFM etc.)

You can use the following line to add the PPA and install the package:

sudo add-apt-repository ppa:mmolch && sudo apt-get update && sudo apt-get -y install mmolch-thumbnailers

Don't forget to restart your file manager after the installation to activate the thumbnailers (e.g. nautilus -q).

In detail it contains the following files:

kra.thumbnailer

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

ora.thumbnailer

[Thumbnailer Entry]
TryExec=unzip
Exec=sh -c "unzip -p %i Thumbnails/thumbnail.png > %o"
MimeType=image/openraster;

psd.thumbnailer

[Thumbnailer Entry]
TryExec=convert
Exec=convert psd:%i[0] -scale 512x%s png:%o
MimeType=image/vnd.adobe.photoshop;

xcf.thumbnailer

[Thumbnailer Entry]
TryExec=xcf2png
Exec=sh -c "xcf2png %i -o - | convert -scale 512x%s - png:%o"
MimeType=image/x-xcf;

According to the thumbnailer specification, the %s parameter specifies the height the thumbnail should have. 512 seems like a reasonable value for the maximal width.


One Response to “Thumbnailers for Krita (.kra), Gimp (.xcf), OpenRaster (.ora) and Adobe Photoshop (.psd) files”

  1. Jake
    November 3rd, 2016 at 04:12
    1

    Thanks! Awesome, works great for my psd files.

Leave a Comment

I respect your privacy
I don't run any trackers on this site.

Please use the share-buttons or leave comments so I know what might be worth writing about.

Thank you.
Contact