473,856 Members | 1,650 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Imagemagick and php

Hello Users,

I am not sure if this is the place to post an imagemagick question -
please advise.
I have imagemagick 6.3 installed, runs from command line ok, etc.

I have tried (several times now) to install the "MagicWand" PHP api
from the imagemagik site.

This flatly refused to "make" configure seems ok, I follow the
directions provided from the Imagemagick "INSTALL" file that comes in
the source tar.gz file (0-1.9)

I always get this error when I try to do the "make" for php after the
../configure (with a whole bunch of options (pdo, gc, zlib, etc)

error:
ext/magickwand/.libs/magickwand.o: In function
`zif_magickreco lorimage':
/files/PHP/php-5.2.0/ext/magickwand/magickwand.c:77 63: undefined
reference to `MagickRecolorI mage'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

the /files/PHP etc if the path to my php source.

Any one seen this error before??

eholz1

Jan 7 '07 #1
6 2961
On 7 Jan 2007 15:07:08 -0800, "eholz1" <ew****@gmail.c omwrote:
>Hello Users,

I am not sure if this is the place to post an imagemagick question -
please advise.
I have imagemagick 6.3 installed, runs from command line ok, etc.

I have tried (several times now) to install the "MagicWand" PHP api
from the imagemagik site.

This flatly refused to "make" configure seems ok, I follow the
directions provided from the Imagemagick "INSTALL" file that comes in
the source tar.gz file (0-1.9)

I always get this error when I try to do the "make" for php after the
./configure (with a whole bunch of options (pdo, gc, zlib, etc)

error:
ext/magickwand/.libs/magickwand.o: In function
`zif_magickrec olorimage':
/files/PHP/php-5.2.0/ext/magickwand/magickwand.c:77 63: undefined
reference to `MagickRecolorI mage'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

the /files/PHP etc if the path to my php source.

Any one seen this error before??
I just compiled up ImageMagick and MagickWand and it went smoothly. Where did
you install the ImageMagick libraries - it seems that your linker can't find
them when it's building MagickWand.

--
Andy Hassall :: an**@andyh.co.u k :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jan 8 '07 #2
here is where imagemagick put the libraries:

Libraries have been installed in:
/files/PHP/php-5.2.0/ext/magickwand/modules
how to I tell php where to find them???

tnx,

eholz1

Andy Hassall wrote:
On 7 Jan 2007 15:07:08 -0800, "eholz1" <ew****@gmail.c omwrote:
Hello Users,

I am not sure if this is the place to post an imagemagick question -
please advise.
I have imagemagick 6.3 installed, runs from command line ok, etc.

I have tried (several times now) to install the "MagicWand" PHP api
from the imagemagik site.

This flatly refused to "make" configure seems ok, I follow the
directions provided from the Imagemagick "INSTALL" file that comes in
the source tar.gz file (0-1.9)

I always get this error when I try to do the "make" for php after the
./configure (with a whole bunch of options (pdo, gc, zlib, etc)

error:
ext/magickwand/.libs/magickwand.o: In function
`zif_magickreco lorimage':
/files/PHP/php-5.2.0/ext/magickwand/magickwand.c:77 63: undefined
reference to `MagickRecolorI mage'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

the /files/PHP etc if the path to my php source.

Any one seen this error before??

I just compiled up ImageMagick and MagickWand and it went smoothly. Where did
you install the ImageMagick libraries - it seems that your linker can't find
them when it's building MagickWand.

--
Andy Hassall :: an**@andyh.co.u k :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jan 9 '07 #3
And here is the error message I get
(I have attempted to export the LD_LIBRARY_PATH , no guarantee I did it
correctly!)

ext/magickwand/.libs/magickwand.o: In function
`zif_magickreco lorimage':
/files/PHP/php-5.2.0/ext/magickwand/magickwand.c:77 63: undefined
reference to `MagickRecolorI mage'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

Above is the error I get.

Thanks again,

eholz1
eholz1 wrote:
here is where imagemagick put the libraries:

Libraries have been installed in:
/files/PHP/php-5.2.0/ext/magickwand/modules
how to I tell php where to find them???

tnx,

eholz1

Andy Hassall wrote:
On 7 Jan 2007 15:07:08 -0800, "eholz1" <ew****@gmail.c omwrote:
>Hello Users,
>
>I am not sure if this is the place to post an imagemagick question -
>please advise.
>I have imagemagick 6.3 installed, runs from command line ok, etc.
>
>I have tried (several times now) to install the "MagicWand" PHP api
>from the imagemagik site.
>
>This flatly refused to "make" configure seems ok, I follow the
>directions provided from the Imagemagick "INSTALL" file that comes in
>the source tar.gz file (0-1.9)
>
>I always get this error when I try to do the "make" for php after the
>./configure (with a whole bunch of options (pdo, gc, zlib, etc)
>
>error:
>ext/magickwand/.libs/magickwand.o: In function
>`zif_magickrec olorimage':
>/files/PHP/php-5.2.0/ext/magickwand/magickwand.c:77 63: undefined
>reference to `MagickRecolorI mage'
>collect2: ld returned 1 exit status
>make: *** [sapi/cli/php] Error 1
>
>the /files/PHP etc if the path to my php source.
>
>Any one seen this error before??
I just compiled up ImageMagick and MagickWand and it went smoothly. Where did
you install the ImageMagick libraries - it seems that your linker can't find
them when it's building MagickWand.

--
Andy Hassall :: an**@andyh.co.u k :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jan 9 '07 #4
On 8 Jan 2007 22:02:45 -0800, "eholz1" <ew****@gmail.c omwrote:
>Libraries have been installed in:
/files/PHP/php-5.2.0/ext/magickwand/modules
how to I tell php where to find them???
That's a slightly odd location for the ImageMagick libraries? That's where the
magickwand extension might end up though.
>And here is the error message I get
(I have attempted to export the LD_LIBRARY_PATH , no guarantee I did it
correctly!)

ext/magickwand/.libs/magickwand.o: In function
`zif_magickrec olorimage':
/files/PHP/php-5.2.0/ext/magickwand/magickwand.c:77 63: undefined
reference to `MagickRecolorI mage'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

Above is the error I get.
Here's what I did (I've copied these from my shell history - I'm not running
them again as this is on my severely ancient Linux server and it takes ages!)

(1) Compile and install ImageMagick. I put it in /usr, you may well have it
somewhere else, or perhaps you've installed it from an RPM.

wget ftp://ftp.imagemagick.org/pub/ImageM...eMagick.tar.gz
tar zxvf ImageMagick.tar .gz.1
cd ImageMagick-6.3.1/
../configure --prefix=/usr
make
make install

(2) Compile and install MagickWand PHP extension. I didn't follow the
instructions in the INSTALL file as I didn't want to rebuild PHP entirely and
static link it in; instead I've built a shared module.

wget http://www.magickwand.org/download/p...-0.1.9.tar.bz2
tar jxvf magickwand-0.1.9.tar.bz2
cd magickwand
phpize
../configure --with-magickwand=shar ed,/usr
make
make install

The directory after the comma in configure might be the key to you getting it
working.

(3) Add an extension= to php.ini, stop'n'start Apache and look in the output of
phpinfo() - magickwand is loaded. Or:

$ php -m | grep magick
magickwand

--
Andy Hassall :: an**@andyh.co.u k :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jan 9 '07 #5
Thanks Andy,

It seems I have other problems as well - PHP is reading a php.ini file,
but not the one I think it is supposed to be reading! I will see if
there is another file hiding!!!

Thanks,

eric
Your step by step is good. I also need to find out how to reset my
LD_LIBRARY_PATH env variable, I exported the wrong one
Andy Hassall wrote:
On 8 Jan 2007 22:02:45 -0800, "eholz1" <ew****@gmail.c omwrote:
Libraries have been installed in:
/files/PHP/php-5.2.0/ext/magickwand/modules
how to I tell php where to find them???

That's a slightly odd location for the ImageMagick libraries? That's where the
magickwand extension might end up though.
And here is the error message I get
(I have attempted to export the LD_LIBRARY_PATH , no guarantee I did it
correctly!)

ext/magickwand/.libs/magickwand.o: In function
`zif_magickreco lorimage':
/files/PHP/php-5.2.0/ext/magickwand/magickwand.c:77 63: undefined
reference to `MagickRecolorI mage'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

Above is the error I get.

Here's what I did (I've copied these from my shell history - I'm not running
them again as this is on my severely ancient Linux server and it takes ages!)

(1) Compile and install ImageMagick. I put it in /usr, you may well have it
somewhere else, or perhaps you've installed it from an RPM.

wget ftp://ftp.imagemagick.org/pub/ImageM...eMagick.tar.gz
tar zxvf ImageMagick.tar .gz.1
cd ImageMagick-6.3.1/
./configure --prefix=/usr
make
make install

(2) Compile and install MagickWand PHP extension. I didn't follow the
instructions in the INSTALL file as I didn't want to rebuild PHP entirely and
static link it in; instead I've built a shared module.

wget http://www.magickwand.org/download/p...-0.1.9.tar.bz2
tar jxvf magickwand-0.1.9.tar.bz2
cd magickwand
phpize
./configure --with-magickwand=shar ed,/usr
make
make install

The directory after the comma in configure might be the key to you getting it
working.

(3) Add an extension= to php.ini, stop'n'start Apache and look in the output of
phpinfo() - magickwand is loaded. Or:

$ php -m | grep magick
magickwand

--
Andy Hassall :: an**@andyh.co.u k :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jan 10 '07 #6
Success At last!

Hello Andy (do you know you have over 2300 posts in this group!!!)!

I followed your set up suggestions - I am not quite sure what actually
worked, but
I ended up rebuilding php, and added the --with-magickwand=/usr/local
option and
the configure and make actually ran without errors (my box may be
faster than yours, it is a rompin-stomping 700mhz PIII!). I did a make
install, and fired up apache and php, and
the phpinfo() showed the magickwand stuff - the old demo.php page for
MagickWand works.
Now all i have to do is figure out how to use it!!!

Thanks for the tips

eholz1
eholz1 wrote:
Thanks Andy,

It seems I have other problems as well - PHP is reading a php.ini file,
but not the one I think it is supposed to be reading! I will see if
there is another file hiding!!!

Thanks,

eric
Your step by step is good. I also need to find out how to reset my
LD_LIBRARY_PATH env variable, I exported the wrong one
Andy Hassall wrote:
On 8 Jan 2007 22:02:45 -0800, "eholz1" <ew****@gmail.c omwrote:
>Libraries have been installed in:
/files/PHP/php-5.2.0/ext/magickwand/modules
>how to I tell php where to find them???
That's a slightly odd location for the ImageMagick libraries? That's where the
magickwand extension might end up though.
>And here is the error message I get
>(I have attempted to export the LD_LIBRARY_PATH , no guarantee I did it
>correctly!)
>
>ext/magickwand/.libs/magickwand.o: In function
>`zif_magickrec olorimage':
>/files/PHP/php-5.2.0/ext/magickwand/magickwand.c:77 63: undefined
>reference to `MagickRecolorI mage'
>collect2: ld returned 1 exit status
>make: *** [sapi/cli/php] Error 1
>
>Above is the error I get.
Here's what I did (I've copied these from my shell history - I'm not running
them again as this is on my severely ancient Linux server and it takes ages!)

(1) Compile and install ImageMagick. I put it in /usr, you may well have it
somewhere else, or perhaps you've installed it from an RPM.

wget ftp://ftp.imagemagick.org/pub/ImageM...eMagick.tar.gz
tar zxvf ImageMagick.tar .gz.1
cd ImageMagick-6.3.1/
./configure --prefix=/usr
make
make install

(2) Compile and install MagickWand PHP extension. I didn't follow the
instructions in the INSTALL file as I didn't want to rebuild PHP entirely and
static link it in; instead I've built a shared module.

wget http://www.magickwand.org/download/p...-0.1.9.tar.bz2
tar jxvf magickwand-0.1.9.tar.bz2
cd magickwand
phpize
./configure --with-magickwand=shar ed,/usr
make
make install

The directory after the comma in configure might be the key to you getting it
working.

(3) Add an extension= to php.ini, stop'n'start Apache and look in the output of
phpinfo() - magickwand is loaded. Or:

$ php -m | grep magick
magickwand

--
Andy Hassall :: an**@andyh.co.u k :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jan 10 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
7423
by: Randell D. | last post by:
Folks, I've not used ImageMagick before - I've worked with the gd functions that are pre-compiled in PHP and found some of the limits problematic yet heard better reviews on ImageMagick. I've got PHP 4.3.3 - When I do a phpinfo(); it tells me it was compiled with --with-imagemagick There is no other mention of it anywhere (unlike GD which is listed further down in its own box). Can someone give me a quick one or two liner script that...
3
5630
by: Joe | last post by:
Hey I have tried to install ImageMagick on my server, but my apache stalls when i try to start it with the following line added to my php.ini file: extension=php_imagick.dll I can't even kill the apache procees when I try to run it with this option added, so I have to restart the entire server each time I have to return to the original setting of php.ini
5
3663
by: nawfer | last post by:
for to resize and copy original photos into a new directory and to use for a thumbnail gallery on the web; what is better: GD, Netpbm or imagemagick and why? very thank
1
12842
by: shanergb | last post by:
Hi all. I'm creating a web-based application that uses PHP, MySQL & Apache on a Windows platform. What I need to do is create images on the fly with either GD or ImageMagick, display them on the web browser and then save the file. The tricky part is the format of that saved file - it needs to be an EPS format. The image won't be anything terribly exciting - just some basic shapes (boxes, circles, etc) and some text. No fancy colors,...
3
7084
by: Chuck Anderson | last post by:
I am trying to use ImageMagick from a Php script running under Windows XP. I have installed the latest version of ImageMagick - 6.2.1-7 and even tried backing up to version 5.5.7 (based on a recommendation I found during a Google search), but I can not get ImageMagick to work in Php (using exec or system). ImageMagick works from a Windows Command prompt - e.g., convert C:\apache\htdocs\testing\temp_.jpg
5
11237
by: Jim Red | last post by:
Hello Can someone give me an example how to use the Imagemagick - Identity command? Cheers Jim
2
2910
by: azrael | last post by:
Hy did anyone manage to work with imahemagick through python. I've been googling like a crazy for some instalation instructions, but i cant find anything. please help. thnx
3
8581
by: femtox77 | last post by:
Hi to all!!! I'm trying to convert a pdf file into an image, for example JPG or PNG format, with ImageMagick. I use the command line. For example: convert header.pdf header.jpg. But I obtain a bad result. The jpg's quality is very low. Why? I tried to use - quality 100 option but there isn't improvement. I think also that this option isn't active for the pdf conversion to an image format or not? I need some good ideas :D... Thanks to...
0
2006
by: empiresolutions | last post by:
I am working with a TIF to JPG conversion that will result in the JPG being printed from a web page. My issue is the final JPG image prints VERY blurry. The TIF file that has the following settings, *plat.tif* Pixel Dimensions - 9600x7200 Document Size - 24x18 inches Resolution - 400 px/in File Size - 236 KB
0
9918
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9763
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11060
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10786
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7932
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5762
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5959
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4175
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3202
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.