is it possible to make Nautilus display Photoshop .psd files thumbnails when viewing files in the list?
If yes, what are exact steps to make it happen. Had been searching this in google, no luck so far.
Thanks
Okay, found this one, and it worked for me with majority of .psd files:
#!/bin/bash
# -----------------------------------------------------------
# -- Write psdthumbnailer
# -----------------------------------------------------------
OUTFILE=/usr/lib/psdthumbnailer
(
sudo cat <<'EOF'
# bin/bash
# Arguments / Parameters %i %o %s
f_in=$1
f_out=$2
f_size=$3
# Execute Convert PSD to PNG through ImageMagick
exec convert "psd:$f_in[0]" -scale "$f_sizex$f_size" "png:$f_out"
EOF
) > $OUTFILE
# -----------------------------------------------------------
# -- Write photoshop.thumbnailer
# -----------------------------------------------------------
OUTFILE=/usr/share/thumbnailers/photoshop.thumbnailer
(
sudo cat <<'EOF'
# bin/bash
[Thumbnailer Entry]
TryExec=/usr/lib/psdthumbnailer
Exec=/usr/lib/psdthumbnailer %i %o %s
MimeType=image/vnd.adobe.photoshop; image/x-photoshop; image/x-psd;
EOF
) > $OUTFILE
# -----------------------------------------------------------
# -- Set File Permissions
# -----------------------------------------------------------
sudo chmod 0755 /usr/lib/psdthumbnailer
sudo chmod 0644 /usr/share/thumbnailers/photoshop.thumbnailer
# -----------------------------------------------------------
# -- Add GConf Hooks to parse thumbnails
# -----------------------------------------------------------
sudo gconftool-2 --set /desktop/gnome/thumbnailers/[email protected]/enable --type bool true
sudo gconftool-2 --set /desktop/gnome/thumbnailers/[email protected]/command --type string "/usr/lib/psdthumbnailer %i %o %s %i %o %s"
# -----------------------------------------------------------
# -- Install Dependencies
# -----------------------------------------------------------
sudo apt-get install imagemagick
Try this program maintained by this developer: https://moritzmolch.com/1749
I think it's probably better than the above script as the above script did not work for me, and this one seems to be well maintained and did work for other people. It did not work for me but I think that's because trying to use the script on this page messed up my settings :(
Install the Ubuntu PSD thumbnailer
sudo apt install librsvg2-common
More information:
https://packages.ubuntu.com/bionic/librsvg2-common
I just installed it to Ubuntu 21.04 / GNOME 3 (maybe 40) version:
# become root
sudo su
# ensure imagemagick is there
apt install imagemagick
# create script for thumbnailer
cat <<'EOF' > /usr/local/bin/gnome-thumnbail-psd
#!/bin/bash
# Arguments / Parameters %i %o %s
f_in=$1
f_out=$2
f_size=$3
# Execute Convert PSD to PNG through ImageMagick
exec convert "psd:$f_in[0]" -scale "$f_sizex$f_size" "png:$f_out"
EOF
chmod a+x /usr/local/bin/gnome-thumnbail-psd
cat <<'EOF' > /usr/share/thumbnailers/photoshop.thumbnailer
[Thumbnailer Entry]
TryExec=gnome-thumnbail-psd
Exec=gnome-thumnbail-psd %i %o %s
MimeType=image/vnd.adobe.photoshop; image/x-photoshop; image/x-psd;
EOF
sudo chmod 0644 /usr/share/thumbnailers/photoshop.thumbnailer
Some keys to disable specific thumnailers can be found in gsettings by org.gnome.desktop.thumbnailer. No need to adjust in GNOME 3! No need to relaiunch Nautilus! Maybe just press F5.