Very Urgent! How to compile php_imagick.dll extension in windows

Source: Internet
Author: User
Tags imagemagick vc9
Very Urgent !!! Php_imagick.dll extension: how to compile and generate php_imagick.dll in windows? 1. how to compile php_imagick.dll in windows using vc6 or vc9. if there is no specific compilation method for the php_imagick.dll extension, any php extension will be very urgent !!! How to compile php_imagick.dll extension in windows
1. for example, use vc6 or vc9 to compile and generate php_imagick.dll in windows. it is best to have detailed and executable steps.
2. if there is no specific compilation method for the php_imagick.dll extension, any php extension will compile and generate the dll file by yourself in windows.

My goal is to generate the php_imagick.dll corresponding to the PHP version and put it in the php extension/ext directory to process image compression. Just like using php_curl.dll.

My mailbox is 564067343@qq.com, if which God knows can add me, infinite gratitude.
Php vc extention php extension windows:
------ Solution --------------------
Http://www.baidu.com/baidu? Word = php_imagick.dll & ie = UTF-8
------ Solution --------------------
Php_imagick.dll is just an interface
You also need to install the imagick system
------ Solution --------------------
Http://www.cnblogs.com/coffeestone/archive/2011/03/27/1997130.html

I didn't test it, but it looks quite detailed. it should be feasible. refer to it.
------ Solution --------------------
Imagick must be used with PHP. Different versions of PHP must correspond to different versions of imagick. dll. Some official websites can try it one by one.
------ Solution --------------------
Http://hi.baidu.com/singlestudio/item/74d7a623fc738e0a77272c31
Http://hi.baidu.com/singlestudio/item/53d265cbfa7429daef183b31
Give two links to previous problems.
------ Solution --------------------
Well, third-party calls are still efficient. Reference:
Because c/c ++ compilation fails, I use php to call system commands to implement this function. The specific method is as follows:
1, go to the http://www.imagemagick.org/official website to download the latest imagemagick installation to local, see your server is windows or linux corresponding version, my is windows
2. add your imagemagick installation path to the path of the system environment variable. my tasks are C:/program files/imagemagick/
3. write the following code in php to operate your GIF image.

$cmd = "cmd /c convert old.gif -coalesce -thumbnail 25x25 -layers optimize new.gif";
exec($cmd);

I will not explain the specific commands. you can check the manual on your own. then you will find that the GIF image is compressed successfully and its dynamic nature is not broken down, post out my solution for reference by people who will use php_imagick.dll extension later. if any of the c ++ or c experts can tell me how to compile and generate php_imagick.dll by myself, I am very grateful. Continue and Reply

------ Solution --------------------
Attention. many source codes on the network are not ready to use! You need to modify it yourself!
------ Solution --------------------
Just to generate a gif with multiple frames, there is no need to do anything about it.
Php code.
------ Solution --------------------
MSVCR100.DLL is the C runtime library of VS2010.
PHP seems to only have VC6 and VC9 (VS2008 MSVCR90.DLL) versions, so it is normal to reference MSVCR100.DLL for errors.
If you must use vs2010, you can set the C runtime library to a static call during compilation, and compile MSVCR100.DLL directly into php_imagick.dll. (C/C ++-code generation-> runtime library-> Multithreading (/MT ))..
------ Solution --------------------
Reference:
Well, third-party calls are still efficient. Quote: reference:

Because c/c ++ compilation fails, I use php to call system commands to implement this function. The specific method is as follows:
1, go to the http://www.imagemagick.org/official website to download the latest imagemagick installation to local, see your server is windows or linux corresponding version, my is windows
2. add your imagemagick installation path to the path of the system environment variable. my tasks are C:/program files/imagemagick/
3. write the following code in php to operate your GIF image.

$cmd = "cmd /c convert old.gif -coalesce -thumbnail 25x25 -layers optimize new.gif";
exec($cmd);

I will not explain the specific commands. you can check the manual on your own. then you will find that the GIF image is compressed successfully and its dynamic nature is not broken down, post out my solution for reference by people who will use php_imagick.dll extension later. if any of the c ++ or c experts can tell me how to compile and generate php_imagick.dll by myself, I am very grateful. Continue and Reply


You can install PECL first, and then use pecl install imagick to install the library.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.