Home Backend Development PHP Tutorial php+ImageMagick+imagick API Configuration Guide_PHP Tutorial

php+ImageMagick+imagick API Configuration Guide_PHP Tutorial

Jul 13, 2016 pm 05:32 PM
api imagemagick download guide of Related software Configuration

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

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/508658.htmlTechArticleFirst 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) -exte...
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

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

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1670
14
PHP Tutorial
1274
29
C# Tutorial
1256
24
What should I do if I download other people's wallpapers after logging into another account on wallpaperengine? What should I do if I download other people's wallpapers after logging into another account on wallpaperengine? Mar 19, 2024 pm 02:00 PM

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

Introduction to how to download and install the superpeople game Introduction to how to download and install the superpeople game Mar 30, 2024 pm 04:01 PM

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

Setting up Chinese with VSCode: The Complete Guide Setting up Chinese with VSCode: The Complete Guide Mar 25, 2024 am 11:18 AM

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

How to download Beilehu children's songs How to download Beilehu children's songs Mar 28, 2024 am 11:10 AM

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.

Understand Linux Bashrc: functions, configuration and usage Understand Linux Bashrc: functions, configuration and usage Mar 20, 2024 pm 03:30 PM

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

Where to download files from Quark Network Disk_How to download Quark Network Disk to local area and share Where to download files from Quark Network Disk_How to download Quark Network Disk to local area and share Mar 21, 2024 pm 03:57 PM

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;

Detailed steps for downloading files from qq Detailed steps for downloading files from qq Mar 22, 2024 pm 09:10 PM

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? Is it easy to download? How to download WPS cloud documents? Is it easy to download? Mar 20, 2024 am 09:31 AM

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?

See all articles