Ash often emergencies! Php_imagick.dll extension under Windows How to build yourself

Source: Internet
Author: User
Tags imagemagick vc9
Ash often emergencies!!! Php_imagick.dll How to build your own builds under Windows
1, title, the use of VC6 or vc9 how to build Php_imagick.dll under Windows, it is best to have specific detailed steps to perform
2. If there is no specific compilation method for this extension, then any PHP extension will compile its own DLL file in Php_imagick.dll under Windows OK.

My goal is to build and PHP version of the corresponding Php_imagick.dll placed in the PHP extension/ext directory, to handle image compression. It's like using Php_curl.dll.

My mailbox is 564067343@qq.com, if any big God know can add me, infinitely grateful.
PHP VC extention PHP Extensions Windows

Share to:


------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 did not test, but it looks very detailed, should be feasible, refer to the next
------Solution--------------------
Imagick needs to work with PHP. Different versions of PHP need to correspond to different versions of Imagick.dll. There are official websites that you can go to try one by one.
------Solution--------------------
Http://hi.baidu.com/singlestudio/item/74d7a623fc738e0a77272c31
Http://hi.baidu.com/singlestudio/item/53d265cbfa7429daef183b31
Give two links after you have encountered a problem before.
------Solution--------------------
Well, third-party calls, efficiency is OK. Reference:
because the C + + compiler does not pass, so I change the use of PHP Invoke system command to implement this function. The specific method of drying out as follows:
1, go to http://www.imagemagick.org/official website Download the latest ImageMagick installed to the local, see your server is Windows or Linux own corresponding version, my is Windows
2, set the system environment variable path to add your ImageMagick installation path, my thing C:/Program files/imagemagick/
3, the PHP code in accordance with a similar to the following written to successfully manipulate your GIF picture

$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, and then you will find that the GIF image compression succeeded, and did not spoil its dynamic, paste out my solution to the future with the Php_imagick.dll extension of the reference, if there is a C + + or c master can tell me how to build php_imagick.dll, then I would like to thank. Continue to wait for reply

------Solution--------------------
Express concern, many of the network source code is not ready to use! Need to modify it yourself!
------Solution--------------------
Just to create a multi-frame gif, there's no need to make a fuss.
PHP code can be implemented
------Solution--------------------
MSVCR100. DLL is the C runtime library of VS2010
PHP seems to be only VC6 and VC9 (VS2008 MSVCR90. DLL), so referencing MSVCR100.DLL error is also normal.
If you must use VS2010, you can compile the runtime to set the C to static calls, direct MSVCR100.DLL directly compiled into the Php_imagick.dll to try. (c/c++-code generation, run-Library, multi-threaded (/MT)):
------Solution--------------------
References:
Well, third-party calls, efficiency is OK. Quote: References:

I changed the call System command in PHP to implement this function because C + + compiler did not pass. The specific method of drying out as follows:
1, go to http://www.imagemagick.org/official website Download the latest ImageMagick installed to the local, see your server is Windows or Linux own corresponding version, my is Windows
2, set the system environment variable path to add your ImageMagick installation path, my thing C:/Program files/imagemagick/
3, the PHP code in accordance with a similar to the following written to successfully manipulate your GIF picture

$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, and then you will find that the GIF image compression succeeded, and did not spoil its dynamic, paste out my solution to the future with the Php_imagick.dll extension of the reference, if there is a C + + or c master can tell me how to build php_imagick.dll, then I would like to thank. Continue to wait for reply


You can try installing pecl before installing the library with pecl install Imagick.
  • Related Article

    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.