generate preview thumbnail image of 450 type of files
PHP rewrite of this node.js project (https://github.com/maxlabelle/filepreview ).
Install Third Party Software on CentOS
- Install FFmpeg
https://www.vultr.com/docs/how-to-install-ffmpeg-on-centos
Step 1: update the system
sudo yum install epel-release -y
sudo yum update -y
sudo shutdown -r now
Step 2: Install the Nux Dextop YUM repo
sudo rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-2.el6.nux.noarch.rpm
Step 3: Install FFmpeg and FFmpeg development packages
sudo yum install ffmpeg ffmpeg-devel -y
- Install ImageMagic
https://www.vultr.com/docs/install-imagemagick-on-centos-6/
If you have not installed the epel repository, install it now.
rpm -Uvh epel-release-6*.rpm
Next, install the remi repository:
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm
An additional step is required to enable the remi repository:
Use your favorite text editor to open /etc/yum.repos.d/remi.repo. Look for the remi section and find enabled=0 and change it to enabled=1.
Make sure that the required dependencies are installed:
yum install -y gcc php-devel php-pear
Then install ImageMagick:
yum install -y ImageMagick ImageMagick-devel
in addtion: https://www.liaohuqiu.net/posts/install-php-imagick-on-centos/
- Install unoconv
- create file /etc/yum.repos.d/Archives.repo
####################################################
[c6-archives]
name=CentOS-6 – Archives
baseurl=http://vault.centos.org/6.2/updates/$basearch/
gpgcheck=0
enabled=1
####################################################
- run
sudo yum clean all
sudo yum install unoconv openoffice.org-headless openoffice.org-writer openoffice.org-calc openoffice.org-impress