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

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 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)

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

CrystalDiskinfo usage tutorial-What software is CrystalDiskinfo? CrystalDiskinfo usage tutorial-What software is CrystalDiskinfo? Mar 18, 2024 pm 04:50 PM

CrystalDiskInfo is a software used to check computer hardware devices. In this software, we can check our own computer hardware, such as reading speed, transmission mode, interface, etc.! So in addition to these functions, how to use CrystalDiskInfo and what exactly is CrystalDiskInfo? Let me sort it out for you! 1. The Origin of CrystalDiskInfo As one of the three major components of a computer host, a solid-state drive is the storage medium of a computer and is responsible for computer data storage. A good solid-state drive can speed up file reading and affect consumer experience. When consumers receive new devices, they can use third-party software or other SSDs to

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;

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

Can't UC videos be downloaded? How to download videos in UC browser Can't UC videos be downloaded? How to download videos in UC browser Mar 20, 2024 pm 08:51 PM

UC Browser is a browser that everyone is using. It allows everyone to get some unique online experience. It is super convenient and can search for a variety of resources for you, some of which you cannot enjoy on other platforms. Everyone can view his video works here. The content is very exciting. Everyone is immersed in it and can't stop at all. They also want to download the video locally so that they can watch it at any time. Whenever you want to watch it, you can just When I watched it, it was very convenient. I have sorted out the specific method of downloading the video. I hope it can help you. How to download videos to the local area in UC Browser: 1. Open UC Browser, click on the menu bar, and select Download/Video; 2. Click on the cached video; 3. Click on the video selection

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

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.

See all articles