nextcloud 16 视频和pdf 加封面

张映 发表于 2019-11-29

分类目录: php, 服务器相关

标签:,

nextcloud网页端,视频和PDF是看不到缩略图的,只能通过名字和大小来区分,不是很方便。

1,安装ffmpeg和ghostscript

# wget http://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm   //centos7
# wget http://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm   //centos6
# rpm -ivh rpmfusion-free-release*.rpm  

# yum install ffmpeg ffmpeg-devel
# yum install ghostscript

2,修改config.php

'enabledPreviewProviders' => array (
    0 => 'OC\\Preview\\PNG',
    1 => 'OC\\Preview\\JPEG',
    2 => 'OC\\Preview\\GIF',
    3 => 'OC\\Preview\\HEIC',
    4 => 'OC\\Preview\\BMP',
    5 => 'OC\\Preview\\XBitmap',
    6 => 'OC\\Preview\\MP3',
    7 => 'OC\\Preview\\TXT',
    8 => 'OC\\Preview\\MarkDown',
    9 => 'OC\\Preview\\Movie',
    10 => 'OC\\Preview\\PDF'
),
nextcloud 视频 pdf加封面

nextcloud 视频 pdf加封面



转载请注明
作者:海底苍鹰
地址:http://blog.51yip.com/server/2284.html

留下评论

留下评论
  • (必需)
  • (必需) (will not be published)
  • (必需)   8X1=?