because ImageMagick7 The following is not supported heic Wait for the picture format , So it was reinstalled ImageMagick7.1 Versioning support heic Format , And write this article to record .
If you encounter some unknown errors during installation ,https://imagemagick.org/script/download.php You can go to the official website to see the documents for solution , Or the comments .
stay Linux(centos7) Installation on ImageMagick7.1 Libraries and php Of Imagick Expand
1. stay Linux Installation on ImageMagick7.1
Before installation, you need to configure pkg-config, In order to ImageMagick Some optional delegate libraries can be found on your system
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib64/pkgconfig:/usr/local/lib/pkgconfig
export PKG_CONFIG_PATH
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib:/usr/lib64:/usr/local/lib:/usr/local/lib64
export LD_LIBRARY_PATH
Install dependency library ( I only install heic(heif) Dependence , Other formats are installed similarly )
install x265(libheif rely on )
wget https://www.nasm.us/pub/nasm/releasebuilds/2.13.03/nasm-2.13.03.tar.gz
tar -zxvf nasm-2.13.03.tar.gz
cd nasm-2.13.03
./autogen.sh && ./configure && make && make install
install libheif rely on
wget https://github.com/strukturag/libheif/releases/download/v1.12.0/libheif-1.12.0.tar.gz
tar -zxvf libheif-1.12.0.tar.gz
cd libheif-1.12.0
./autogen.sh && ./configure && make && make install
Final installation ImageMagick
wget https://imagemagick.org/archive/ImageMagick-7.1.0-39.tar.gz
tar -zxvf ImageMagick-7.1.0-39.tar.gz
cd ImageMagick-7.1.0-39
./configure && make && make install
Set the environment variable
echo "export PATH=$PATH:/usr/local/ImageMagick/bin" >> /etc/profile
// If you need to remove the old version
yum remove ImageMagick -y
// Load environment variables
source /etc/profile
// Verify that the version was successfully installed
convert -version
// View the list of supported formats
convert -list format
If an error is reported during compilation
error: 'libraw_output_params_t' has no member named 'no_interpolation'
You need to upgrade your libraw edition
// Uninstall the current libraw
yum remove libraw
// Install a later version of libraw
(rpm Installation command )
rpm -ivh https://mirrors.tuna.tsinghua.edu.cn/centos/7/os/x86_64/Packages/LibRaw-0.19.4-1.el7.x86_64.rpm
(yum Installation command )
yum localinstall -y https://mirrors.tuna.tsinghua.edu.cn/centos/7/os/x86_64/Packages/LibRaw-0.19.4-1.el7.x86_64.rpm
After installation, edit again
2. install PHP Of Imagick Expand
// download 、 decompression 、 install imagick-3.4.4
wget https://pecl.php.net/get/imagick-3.4.4.tgz
tar -zxvf imagick-3.4.4.tgz
cd imagick-3.4.4.tgz/
/usr/local/php/bin/phpize
//ImageMagick 6.8 The above version directory is /usr/local/include/ImageMagick-X, stay configure Before doing the next soft connection
ln -s /usr/local/imagemagick/include/ImageMagick-7 /usr/local/imagemagick/include/ImageMagick
./configure --with-php-config=/usr/local/php/bin/php-config --with-imagick=/usr/local/imagemagick
make && make install
Last in php.ini Add imagick.so Just expand
extensions=imagick.so
By upgrading ImageMagick7 Support heic Format processing , Because our server is aws Of , There are twists and turns in the installation process . Fortunately, the installation was completed successfully . I hope to record the process , Give some help to friends in need .
Blog address :https://www.goldenleek.top
Welcome to harass ~
install ImageMagick7.1 Libraries and php Of Imagick More related articles expanded
- turn ImageMagick And PHP Of imagick Installation and configuration of extension
imagick It's a PHP An extension of , use ImageMagick Provided API To create and modify pictures , But these operations have been packaged into extensions imagick In the , The final call is ImageMagick Provided API Image ...
- adopt php install Imagick Extend to dynamic gif Watermark the picture
adopt php install Imagick Extend to dynamic gif Watermark the picture all the time php All pictures are processed with gd Mainstream , Until recently Imagick The use of . gd Usually used to zoom pictures , Basic functions such as watermarking pictures , For complex effects such as ...
- linux Next install ImageMagick And its php imagick Expand ( turn )
linux Next install ImageMagick And its php imagick Expand PHP edition 7.1.3 : ImageMagick edition ImageMagick-7.0.8-3: PHP Expand imagick edition ...
- install Python Algorithm library
install Python Algorithm library It mainly includes the use of NumPy and SciPy To process data , use Matplotlib To realize data visualization . In order to meet the needs of processing large-scale data ,python On this basis, we developed Scikit-Learn Machine learning is ...
- kali4.0 install 32 Location base
One . Antecedents feed : OS:Kali4.0 64bit Two . install 32 Location base : Wrong way :sudo apt-get install lib6-i386 The correct way is as follows : 1. Start with root Login as user : su ro ...
- ubuntu Lower installation 32 Location base ia32-libs Method
These two days are just Linux System , You want to configure JDK,SDK Environmental Science , however SDK When configuring and using , Prompt no permission . Need to install 32 Bit library to solve , There is also a prompt when modifying the file that you cannot modify . alas ... Anyway, there is no way to operate normally Later according to ...
- phpstudy appear “ Please check the installation by yourself VC9 Runtime ??” problem -- The lack of vc9 library
phpStudy Is a PHP The program integrated debugging environment package , The package integrates the latest Apache+PHP+MySQL+phpMyAdmin+ZendOptimizer, One-time installation , Without any configuration , It is very convenient . Easy to use ...
- [django] stay virtualenv How to use the third-party library installed under
stay virtualenv Third party libraries installed under , for example south, requests etc. , If you want to django Use in , You need to add the library to settings.py Of INSTALLED_APPS in , With south, re ...
- Resolve installation vc2005 The runtime prompts Command line option syntax error.Type Command/?for Help
install vc2005 The runtime prompts This is because it needs to self extract to the user's temporary folder , If the user name is in Chinese , You're going to report a mistake . The simple solution is , Manually unzip it , Install again Of course , You can also change the user name or create a new user .
- [ Reprint ~ note ]CentOS Compile and install separately PHP gd Library extension
http://www.nowamagic.net/librarys/veda/detail/2610 install gd Front end Library : freetype, jpegsrc, libpng 1. freetypewge ...
Random recommendation
- One line of code java list duplicate removal
1. It's written without type : 1 List listWithoutDup = new ArrayList(new HashSet(listWithDup)); 2. Writing with type ( With String Type as an example ):1)Ja ...
- IKAnalyzer
In our project, Chinese word segmentation uses mmseg, One dissatisfaction is jar The default dictionary in the package will be loaded , When I'm interested in some term When you have an opinion , Cannot delete . mmseg in Dictionary.java There's a piece of code in it that guarantees /d ...
- JMeter Study ( Four ) A parameterized
JMeter Also like LR Parameterization in the design , This article will introduce JMeter How to realize the parameterization of . A parameterized : There are login operations in the recording script , User name and password required , If the system does not allow the same user name and password to log in at the same time , Or want to better simulate multiple users ...
- ASP.Net MVC Concept and basic
1.1 Concept MVC It's a software design pattern , namely :Model( Model ).View( View ).Controller( controller ) . Its main design goal is to separate the user interface from the logic layer , So that developers can pay more attention to the design and testing of logic layer , ...
- python in while Loop operator and formatted output
One ,while loop while Conditions : while Sentence block ( The loop body ) function : Judge whether the condition you give is true , If true, the loop body is executed . Otherwise jump out of the loop . After executing the loop body, judge whether the condition is true again Example 1 When we play league, we spray ...
- BZOJ4870 [Shoi2017] Combinatorial number problem 【 Combinatorial number + Moment multiplication 】
Topic link BZOJ4870 Answer key \[ans = \sum\limits_{i = 0}^{\infty}{nk \choose ik + r} \pmod p\] To find out is to seek \[ans = \s ...
- Nginx Start and stop of , restart
1. Make sure the nginx File location Such as : restart 1. verification nginx Is the configuration file correct Method 1 : Get into nginx The installation directory sbin Next , Enter the command ./nginx -t 2. restart Nginx service Method 1 : Get into ngin ...
- HttpRunner Parametric data driven
HttpRunner 2.0 Parametric data-driven case , Nonsense , Direct delivery of dry goods . 1. Test case directory structure api: Interface set testcases: The test case testsuites: test suite data: ...
- Summary of back end interaction before big front end involvement 1: Software architecture and PHP build
1 Software architecture and PHP build 1.1 HTTP The server (web The server ) namely ( web The server ) Web server , Mainly provide documents ( Text . picture . video . Audio )web Browsing Services , General installation Apache.Nginx Server software . ...
- [SHELL] Output all executable files in the directory , Mass create users
#!/bin/bash IFS=: for folder in $PATH #PATH The variable separator is : do echo $folder echo ------------------ for file ...







![[C language questions -- leetcode 12 questions] take you off and fly into the garbage](/img/ca/a356a867f3b7ef2814080fb76b9bfb.png)
