ImageMagick
ImageMagick:
It is a powerful set of image manipulation utilities. It can read, write and manipulate images in many image formats. It can resize, rotate, sharpen, color reduce or add any other special effect to your images. And, best of all, ImageMagick is directly available from the command line. In this article, we will write a script to make it available from the query string. You can then use it, for example, to automatically generate thumbnails of your images.
Installation on cPanel server:
Command-line:
To check whether imagemagick installed?
# /scripts/checkimagemagick
If not, proceed Installation with
# /scripts/installimagemagick
This will take couple of minutes as it will install other packages needed by ImageMagick. After the installation, you can check your ImageMagick version through:
# /usr/bin/convert --version
…
root@server [~]# /usr/bin/convert --version
Version: ImageMagick 6.8.0-1 2012-12-27 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
If you want to uninstall,
# /scripts/cleanimagemagick
Through WHM:
To install Imagick:
WHM » Software » Module Installers » PHP Pecl (manage). On the box below Install a PHP Pecl enter imagick and click Install Now button - that’s it.
Restart Apache and check your phpinfo page to see the details of Imagick and ImageMagick as well.
To uninstall:
WHM » Software » Module Installers » PHP Pecl (manage). Click on Uninstall button for Imagick.
Other way to install Imagic:
It is a powerful set of image manipulation utilities. It can read, write and manipulate images in many image formats. It can resize, rotate, sharpen, color reduce or add any other special effect to your images. And, best of all, ImageMagick is directly available from the command line. In this article, we will write a script to make it available from the query string. You can then use it, for example, to automatically generate thumbnails of your images.
Installation on cPanel server:
Command-line:
To check whether imagemagick installed?
# /scripts/checkimagemagick
If not, proceed Installation with
# /scripts/installimagemagick
This will take couple of minutes as it will install other packages needed by ImageMagick. After the installation, you can check your ImageMagick version through:
# /usr/bin/convert --version
…
root@server [~]# /usr/bin/convert --version
Version: ImageMagick 6.8.0-1 2012-12-27 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
If you want to uninstall,
# /scripts/cleanimagemagick
Through WHM:
To install Imagick:
WHM » Software » Module Installers » PHP Pecl (manage). On the box below Install a PHP Pecl enter imagick and click Install Now button - that’s it.
Restart Apache and check your phpinfo page to see the details of Imagick and ImageMagick as well.
To uninstall:
WHM » Software » Module Installers » PHP Pecl (manage). Click on Uninstall button for Imagick.
Other way to install Imagic:
# wget http://pecl.php.net/get/imagick-2.3.0.tgz # tar -zxvf imagick-2.3.0.tgz # cd imagick-2.3.0 # phpize # ./configure # make # make install
Once the compilation is over you could find the file imagick.so in the /usr/local/lib/php/extensions/no-debug-non-zts-20060613 directory.
# vi /usr/local/lib/php.ini ============================== extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613" extension="imagick.so" ============================== Restart Apache once this is done. # /scripts/restartsrv_httpd
http://serverI-IP/info.php
Comments
Post a Comment