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文件管理器中显示图像文件的预览的主要内容,如果未能解决你的问题,请参考以下文章

markdown Ubuntu启用交换文件#linux

Ubuntu/Linux 笔记应用 为知笔记(支持markdown)

markdown 在Ubuntu / CentOS / Fedora Linux操作系统上安装NVIDIA驱动程序和CUDA

markdown 在Wine上安装Adobe Photoshop CS6(Ubuntu,Elementary OS,Linux Mint)

ubuntu or linux 安装markdown editor Typora

markdown 预备Linux ubuntu服务器或Digital ocean droplet