Revision [946]

Last edited on 2010-01-19 14:42:18 by FsseInfo
Additions:
MagickWandExamples
Deletions:
==example==
%%(php)
<?php
$file='test.pdf';
$ext='PNG' ;
$w = NewMagickWand();

MagickSetResolution( $w, 200, 200 );
MagickReadImage( $w, $file );
MagickSetImageFormat( $w, $ext );
header( 'Content-Type: image/' . $ext );
MagickEchoImageBlob( $w );
?>


Revision [926]

Edited on 2009-11-13 23:19:07 by FsseInfo
Additions:
# make install
or
# cp modules/magickwand.so /usr/lib/php/modules
or
# cp modules/magickwand.so /usr/lib64/php/modules/
Deletions:
# cp modules/magickwand.so /usr/lib/php/modules (or /usr/lib64/php/modules/)


Revision [925]

Edited on 2009-11-13 23:15:38 by FsseInfo
Additions:
# cp modules/magickwand.so /usr/lib/php/modules (or /usr/lib64/php/modules/)
Deletions:
# cp modules/magickwand.so /usr/lib/php/modules


Revision [924]

Edited on 2009-11-13 23:00:57 by FsseInfo

No Differences

Revision [923]

Edited on 2009-11-13 22:57:23 by FsseInfo
Additions:
==tips==
sometimes yum remove doesnt work properly and leaves old (now broken) imagemagick convert binarys around
$ convert -version
convert: error while loading shared libraries: libMagick.so.10: cannot open shared object file: No such file or directory
$ /usr/local/bin/convert -version
Version: ImageMagick 6.5.7-7 2009-11-13 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC
Features: OpenMP
you'll need to manually delete all the old imagemagick binarys from /usr/bin


Revision [922]

Edited on 2009-11-13 22:21:04 by FsseInfo
Additions:
# yum remove ImageMagick*
# yum install php
# yum install php-devel
$ phpize
Deletions:
# yum remove ImageMagick
# yum remove ImageMagick-devel


Revision [919]

Edited on 2009-11-11 19:06:30 by FsseInfo
Additions:
Installation of magickwand is almost impossible in CentOS, OEL or RHEL but here's how i did it and how i fixed these errors:
PHP Warning: PHP Startup:
Unable to load dynamic library '/usr/lib/php/modules/magickwand.so' - libMagickWand.so.1:
cannot open shared object file:
No such file or directory in Unknown on line 0
PHP Warning: PHP Startup:
fileinfo: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match in Unknown on line 0
# yum remove php-pecl-Fileinfo.
# yum remove ImageMagick
# yum remove ImageMagick-devel
Deletions:
Installation of magickwand is almost impossible in CentOS, OEL or RHEL but here's how i did it !
# yum uninstall ImageMagick
# yum uninstall ImageMagick-devel


Revision [918]

Edited on 2009-11-11 18:41:05 by FsseInfo
Additions:
>>http://www.imagemagick.org/script/install-source.php
http://www.magickwand.org/
>>===MagickWand===
MagickWand is a wrapper around imagemagick (convert, compose etc) and ghostscript (gs) that lets PHP developers manipulate PNG, GIF or JPEG images or PDF files !
==installation==
Installation of magickwand is almost impossible in CentOS, OEL or RHEL but here's how i did it !
==uninstall old versions of ImageMagick==
MagickWand needs ImageMagick version 6.3.5 or greater so will not work with ImageMagick 6.2.8 that is packaged with CentOS so you must uninstall that one
# yum uninstall ImageMagick
# yum uninstall ImageMagick-devel
==Get ImageMagick 6.5.5+==
Get ImageMagick sourcecode from tar
$ wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
$ tar zxvf ImageMagick.tar.gz
or from svn if you need an older version such as 6.5.5
$ svn co https://www.imagemagick.org/subversion/ImageMagick/branches/ImageMagick-6.5.5/ ImageMagick
==Configure and compile ImageMagick 6.5.5+==
Configure and compile ImageMagick 6.5.5+
$ cd ImageMagick
$ ./configure
$ make
$ su
# make install
# exit
$
should install convert, composite etc utilities into
/usr/local/bin
instead of the CentOS package default of
/usr/bin
This is the only way to create the all important
Magick-config
Magick++-config
MagickCore-config
MagickWand-config
utilities that you need to prevent getting the error
Cannot locate configuration program MagickWand-config
in the next phase of the process
==Configure and compile MagickWand==
Configure and compile MagickWand 1.0.7
$ wget http://www.magickwand.org/download/php/MagickWandForPHP-1.0.7.tar.gz
$ tar zxvf MagickWandForPHP-1.0.7.tar.gz
$ cd MagickWand
$ ./configure
$ make
$ su
# cp modules/magickwand.so /usr/lib/php/modules
# vi /etc/php.ini
and add
extension=magickwand.so
restart apache httpd with magickwand module
# service httpd restart
# exit
$
==example==
----
REFERRERS
{{backlinks}}
Deletions:
>>http://www.magickwand.org/
>>
===MagickWand===
MagickWand is a wrapper around imagemagic (convert) and ghostscript (gs) that lets PHP developers convert Adobe PDF documents to PNG, GIF or JPEG images !


Revision [672]

Edited on 2008-07-24 17:24:34 by FsseInfo
Additions:
MagickWand is a wrapper around imagemagic (convert) and ghostscript (gs) that lets PHP developers convert Adobe PDF documents to PNG, GIF or JPEG images !
MagickSetResolution( $w, 200, 200 );
MagickReadImage( $w, $file );
MagickSetImageFormat( $w, $ext );
Deletions:
MagickWand is a wrapper around imagemagic (convert) and ghostscript (gs) that lets you convert PDFs to PNGs !
MagickSetResolution($w, 200, 200);
MagickReadImage($w, $file);
MagickSetImageFormat($w,$ext);


Revision [671]

The oldest known version of this page was created on 2008-07-24 16:33:57 by FsseInfo
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki