Using ImageMagick with PHP
There is a PHP module for Imagemagick, called imagick, sort of like the one for GD.
Following is some simple code that has worked for me:
if(!extension_loaded('imagick')) { dl('imagick.so'); } $handle = imagick_create(); imagick_set_attribute($handle,array("quality"=>1,"magick"=>"png")); imagick_set_attribute($handle,"size","98x20"); imagick_read($handle,"xc:#cccccc"); imagick_annotate($handle,array( "primitive" => "text 10,14 hello", "pointsize" => 16, "antialias" => 1, "stroke" => "#000000", "font" => "arial.ttf" )); $handle = imagick_copy_rotate ($handle, 270); header("Content-type: image/png"); imagick_dump($handle,"png");
would it be possible that you may make it a bit more specific for the non-programmers??
such as "save as" and the next next step…etc??
if it's possible would be great, love to use it on my site. Thanks!
There are more in-depth examples about how to use the IMAGICK PHP extension here:
http://pecl.php.net/get/imagick-0.9.11.tgz
http://pecl.php.net/package/imagick
The Samples/ directory contains about 30 examples on how you can use IMAGICK
–Vince
Biosonik.com
I think you are right. One neat thing, I\'d have never predicted with the internet, is that the sites are staying around, so that people can find them, read them and learn from them. The worst thing about the .edu internet was data rot (a form of link rot) where resources and knowledge went into the vapor every semester.
But what good are websites and references, if the software in question is not being actively developed. The imagick modul for example has so many bugs and glitches, and it seems that no one is taking care of it. So I wish someone would update all those websites, instead of them still being there, pointing to the same old (outdated) information.
[…] Re: Imagemagick / apache / php According to this, the PHP interface is called imagick, not Imagemagick. Though the latter is probably also required. Zypper show no such package called imagick in the repos so you may have to build your own from PEAR. Or maybe there is an OpenSUSE repo with it pre-built. Using ImageMagick with*PHP | Sniptools | […]
Thank you, this little tut has me very helped.
[…] Using ImageMagick with PHP | Sniptools | Miscellaneous (tags: php imageslicing) […]
how to install it on a webhost..do i have to ask them to install it for me