markdown 在Ubuntu的nautilus文件管理器中显示图像文件的预览

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 在Ubuntu的nautilus文件管理器中显示图像文件的预览相关的知识,希望对你有一定的参考价值。

# Howto

## Install these programms
```
sudo apt-get install gnome-raw-thumbnailer ufraw-batch
```

Try now if everything works, and your thumbnails show up. If not, try the following part.


## Fixing missing mime types

In case the default config does not work for you, try this:

Edit the file `/usr/share/thumbnailers/raw.thumbnailer` as __root__ and insert the following content:

```
[Thumbnailer Entry]
TryExec=ufraw-batch
Exec=ufraw-batch --silent --size %s --out-type=png --noexif --output=%o --overwrite --embedded-image %i
MimeType=image/x-3fr;image/x-adobe-dng;image/x-arw;image/x-bay;image/x-canon-cr2;image/x-canon-crw;image/x-cap;image/x-cr2;image/x-crw;image/x-dcr;image/x-dcraw;image/x-dcs;image/x-dng;image/x-drf;image/x-eip;image/x-erf;image/x-fff;image/x-fuji-raf;image/x-iiq;image/x-k25;image/x-kdc;image/x-mef;image/x-minolta-mrw;image/x-mos;image/x-mrw;image/x-nef;image/x-nikon-nef;image/x-nrw;image/x-olympus-orf;image/x-orf;image/x-panasonic-raw;image/x-panasonic-raw2;image/x-pef;image/x-pentax-pef;image/x-ptx;image/x-pxn;image/x-r3d;image/x-raf;image/x-raw;image/x-rw2;image/x-rwl;image/x-rwz;image/x-samsung-srw;image/x-sigma-x3f;image/x-sony-arw;image/x-sony-sr2;image/x-sony-srf;image/x-sr2;image/x-srf;image/x-x3f;
```

Check if the mime type of your RAW images in in the `MimeType` list.

After that, stop nautlius and clear the thumbnail caches:
```
nautlius -q
rm -rf .cache/thumbnails/* .thumbnails/*
```

以上是关于markdown 在Ubuntu的nautilus文件管理器中显示图像文件的预览的主要内容,如果未能解决你的问题,请参考以下文章

Ubuntu18.04安装Nautilus-actions自定义文件管理器鼠标右键列表

ubuntu图形界面管理gnome nautilus metacity unity compiz各是啥东西?

新手怎么用ubuntu终端打开文件夹

ubuntu鼠标右键没有打开终端选项解决方法

nautilus-open-terminal----在当前目录下打开终端

ubuntu右键在当前位置打开终端