php+ImageMagick+imagick API Configuration Guide_PHP Tutorial
First download the relevant software:
ImageMagick 5.5.7
ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-5.5.7-15.tar.gz
imagick:A native php(as the current mainstream development language)-extension to ImageMagick
wget http://pecl.php(as the current mainstream development language).net/get/imagick-0.9.8.tgz
Why don’t you know what ImageMagick is? You might as well go here to see the charm of ImageMagick
Use ImageMagick to flip, zoom, and rotate And more operations
ImageMagick learning
How about ImageMagick, which is more powerful than GD? Well, let’s install it.
What we are going to talk about today is to directly make php (as the current mainstream development language) support ImageMagick instead of using the ImageMagick command line for graphics conversion.
tar ImageMagick-5.5.7-15.tar.gz
cd ImageMagick-5.5.7
./configure
LDFLAGS="-L/usr/lib" CPPFLAGS ="-I/usr/include"
--prefix=/usr/local/ImageMagick
--enable-shared
--enable-lzw
make
make install
For more parameters, please see the compilation help.
By the way, I forgot to tell you that it is best not to use the ImageMagick-devel package that comes with redhat. It is better to compile it yourself, otherwise you will be compiling php (as the current mainstream development language ) will be killed, I said it beforehand, if there is a problem, don’t blame me for not saying anything:)
To join ImageMagick for php(as the current mainstream development language ) API. Then we need to compile php(as the current mainstream development language) twice, php(as the current mainstream development language)After the first compilation, our compilation API will be generated The required php(as the current mainstream development language)ize this program. I won’t talk about the first compilation, it’s basically the same as the second compilation.
In the source code directory 1 of php
(as the current mainstream development language)
. mkdir ext/imagick
2. Then unzip imagick-0.9.8.tgz to the ext/imagick directory
3. Run the command php(as the current mainstream development language)ize
4. cd php(as the current mainstream development language)source code root directory
5. rm configure
6. ./buildconf --force #It seems that not adding --force will prevent the configure file from being regenerated
The following is the second compilation of php(as the current mainstream development language)
./configure --prefix=/usr/local/php(as the current mainstream development language)
--with-MySQL(matched with PHP The best combination)=/usr/local/MySQL(The best combination with PHP)
--with-imagick=/usr/local/ImageMagick
-- with-apxs=/usr/local/apache(the most popular WEB server platform on Unix platform)/bin/apxs
make
make install
As for php (As the current mainstream development language) You can add other parameters of appropriately.
Okay, write a test program for php(as the current mainstream development language)
(as the current mainstream development language) )
php(as the current mainstream development language)info();
?>
Congratulations, the installation is successful, go and enjoy ImageMagick Huge features

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











When you log in to someone else's steam account on your computer, and that other person's account happens to have wallpaper software, steam will automatically download the wallpapers subscribed to the other person's account after switching back to your own account. Users can solve this problem by turning off steam cloud synchronization. What to do if wallpaperengine downloads other people's wallpapers after logging into another account 1. Log in to your own steam account, find cloud synchronization in settings, and turn off steam cloud synchronization. 2. Log in to someone else's Steam account you logged in before, open the Wallpaper Creative Workshop, find the subscription content, and then cancel all subscriptions. (In case you cannot find the wallpaper in the future, you can collect it first and then cancel the subscription) 3. Switch back to your own steam

The superpeople game can be downloaded through the steam client. The size of this game is about 28G. It usually takes one and a half hours to download and install. Here is a specific download and installation tutorial for you! New method to apply for global closed testing 1) Search for "SUPERPEOPLE" in the Steam store (steam client download) 2) Click "Request access to SUPERPEOPLE closed testing" at the bottom of the "SUPERPEOPLE" store page 3) After clicking the request access button, The "SUPERPEOPLECBT" game can be confirmed in the Steam library 4) Click the install button in "SUPERPEOPLECBT" and download

VSCode Setup in Chinese: A Complete Guide In software development, Visual Studio Code (VSCode for short) is a commonly used integrated development environment. For developers who use Chinese, setting VSCode to the Chinese interface can improve work efficiency. This article will provide you with a complete guide, detailing how to set VSCode to a Chinese interface and providing specific code examples. Step 1: Download and install the language pack. After opening VSCode, click on the left

As an indispensable accompaniment to children's growth, Beilehu's children's songs have won the love of countless parents and children with their cheerful melody, vivid pictures and entertaining and educational content. In order to allow babies to enjoy the joy brought by children's songs anytime and anywhere, many parents hope to download Beilehu's children's songs to their mobile phones or tablets so that they can listen to their children at any time, but how to save Beilehu's children's songs? On your mobile phone, this tutorial will bring you a detailed introduction. Users who don’t understand it yet can come and read along with this article to learn more. Beilehu Nursery Rhymes Download Children's Songs Multi-Picture Tutorial: Open the software and select a children's song you want to download. The editor takes "Classic Children's Songs" as an example. 2. Click the "Download" button below the children's song star.

Understanding Linux Bashrc: Function, Configuration and Usage In Linux systems, Bashrc (BourneAgainShellruncommands) is a very important configuration file, which contains various commands and settings that are automatically run when the system starts. The Bashrc file is usually located in the user's home directory and is a hidden file. Its function is to customize the Bashshell environment for the user. 1. Bashrc function setting environment

As a convenient and practical network disk tool, Quark can help users easily obtain their favorite resources. What if you want to download a file locally? Let the editor tell you now, let’s learn it together! How to download Quark Network Disk to local sharing method 1. First open the Quark software, enter the homepage, and click the [Cloud Icon] on the lower right; 2. Then on the Quark Network Disk page, we click the [Document] function; 3. Then go to the document page, select the file you want to download, and click the [three-dot icon]; 4. After the final click, we click [Download] in the pop-up dialog box;

1. First we open file management. 2. Click Internal Storage. 3. Scroll down and sort to find Tencent (Tencent folder) starting with t. 4. Click to enter and find QQfile_recv, click to enter to view.

How to download WPS cloud documents: After selecting the file to be downloaded in the cloud window, select the file path to save and download the WPS cloud document. Nowadays, our office has long been inseparable from the operations of text editing, statistics of data tables, etc. on the computer, and WPS software is an office software that can meet the above various needs. It is also because WPS software has these powerful functions. With its functions, this software has now become a software that many people use in their office work. WPS software has its own cloud. Through this cloud, you can share the edited document to the cloud and upload it to others as a cloud document, so that others can download the cloud document locally from the cloud. So how should we download cloud documents to this computer through the cloud?
