mobilebroken/readme.md

33 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 服务器需要安装的软件
- ImageMagick
> 用于将苹果的HEIC图片格式转换为PNG图片格式必须源码编译否则不支持HEIC格式
```bash
yum install -y epel-release
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
yum install -y yum-utils
yum-config-manager --enable remi
wget https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm
wget https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-7.noarch.rpm
rpm -Uvh rpmfusion-free-release-7.noarch.rpm rpmfusion-nonfree-release-7.noarch.rpm
yum clean all
yum install -y libde265 libx265
yum install -y libheif-devel
yum install -y libtool-ltdl-devel
# 源码编译安装ImageMagick
yum groupinstall -y "Development Tools"
yum install -y libjpeg-turbo-devel libpng-devel freetype-devel libtiff-devel giflib-devel
yum install -y libheif-devel libde265-devel x265-devel
wget https://github.com/ImageMagick/ImageMagick/archive/refs/tags/7.1.2-11.tar.gz
tar xf 7.1.2-11.tar.gz
cd ImageMagick-7.1.2-11/
./configure --with-heif=yes --with-modules --enable-hdri
make -j$(nproc)
make install
which magick
ln -s /usr/local/bin/magick /usr/bin/magick
magick -version
magick -list format | grep HEIC
```