History of ImageMagick
Version 13
ImageMagick
Using the Imagemagick image processing package with bitweaver
Created by: openmacnews, Last modification: 28 Mar 2006 (20:09 UTC) by openmacnews
MagickWand
The official API from the ImageMagick project is called MagicWand. This program interface is highly capable and well supported.For developers, we have the MagickWand API documentation available.
MagicWand on Unix
Currently there is now RPM distro for the magickwand API. However, the good news is that it is very easy to compile.- Install php and the php-devel packages.
- Download the source from http://www.magickwand.org/download/php/
- Unzip tarball, and change into directory
- Type "phpize"
- Type "autoconf"
- Type "./configure"
- Type "make"
- You should end up with the file modules/magicwand.so and copy that to /usr/lib/php4/ or /usr/lib/php/modules (for php5).
- You *must* (at least on my system) add the line in your php.ini "extension=magickwand.so
- restart apache, and hit kernel/admin/phpinfo.php to make sure you have it installed and running.
MagicWand on UNIX w/ PHP src-build
if you're installing MagickWand-PHP into a PHP src build, the instructions are just a little different ...given an *existing* php install (you're gonna need the 'phpize' bin ...)
// DL & unpack latest magickwand-php
cd /tmp
wget http://www.magickwand.org/download/php/magickwand-0.1.8.tar.gz
gnutar zxvf magickwand-0.1.8.tar.gz
// install into php source tree
mv magickwand/ /path/to/php-src/ext/
// find your existing ImageMagick install
which Wand-config
/usr/local/bin/Wand-config
// prep the magickwand extension for php build
cd /path/to/php-src/ext/magickwand
phpize
// rebuild PHP with magickwand extension
cd /path/to/php-src
rm ./configure
make distclean
./buildconf --force
RUN:
./configure \
... (as before) ... \
--with--magickwand=/usr/local
make
make install
rehash
// check your install ...
php -i | grep "MagickWand Backend Library"
MagickWand Backend Library => ImageMagick
php -i | grep "MagickWand Extension Version"
MagickWand Extension Version => 0.1.8
then continue on to cp/install the .so, as above ...
MagicWand on Windows
- Download php-|PHP_V|_magickwand_q8_st.dll from ftp://ftp.imagemagick.org/pub/ImageMagick/php/ (5.0.4 works fine in PHP5.0.5)
- Add extension="php-|PHP_V|_magickwand_q8_st.dll" to your php.ini file
- Restart Apache
- Here are detailed instructions for windows
php-imagick
php-imagick was a 3rd party interface to the ImageMagick code libraries. It has not been well supported, and Windows support is very sketcky at best. The API support is also incomplete in areas. We highly recommend MagickWand instead for these reasons.ImageMagick for Unix
ImageMagick for OSX
An elegantly simple way to get ImageMagick etc installed on OSX is to use the TeXShop installer ...
cref: http://darkwing.uoregon.edu/~koch/texshop/index.html
fwiw, i use the installer to install/maintain:
- Freetype2
- libwmf
- Ghostscript 8
- JPEG Tools & Library
- ImageMagick
- FontForge
- TeX (Basic Installation, 2004 Stable)
for MagickWand-PHP to build successfully you'll need to install, of course 'ImageMagick', as well as the libjasper jpeg libs (cref: http://www.ece.uvic.ca/~mdadams/jasper/) provided by the 'JPEG Tools & Library' install, above.
ImageMagick for PHP5 on Windows
Install version 5.5.7 of ImageMagic ( same applies for PHP4 )
http://sourceforge.net/project/showfiles.php?group_id=24099&package_id=47692&release_id=236163
The Q16 versions provide 48/64 bit resolution(16 bits per pixel), while the Q8 versions provide 24/32 bit (8 bit per pixel). The Q8 is probably more than adaquate for bitweaver.
PHP5
Get php_imagick.dll from the matching PECL distribution for your version of PHP5
http://www.php.net/downloads.php
PHP4
4.3.x distributions do not have this file
but the http://php.chregu.tv/php_imagick.dll link should work with PHP4
Just for the record
http://kromann.info/download.php?strFolder=php5-Release_TS&strIndex=PHP5
Always has the latest build for the current development version of PHP5.1