Different version of imagemagick, problem with convert

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
lovelf
Posts: 13
Joined: 2012-12-11T13:23:57-07:00
Authentication code: 6789

Different version of imagemagick, problem with convert

Post by lovelf »

Exec is executing a different version of ImageMagick,

With php,

convert -version
returns me:
Version: ImageMagick 6.5.4-7

Whereas executing as root in the command line returns me:
Version: ImageMagick 6.8.1-10

It seems I have convert in two places,
/usr/local/bin/convert

which gets executed from the command line with putty,

and then

/usr/bin/convert

which is executed with php which is also in /usr/bin/

so I wonder how to get rid of convert in /usr/bin

-and if that would let php find the other convert in /usr/local/bin/

or whether to be able to move all successfully that belongs to the newer version of im to overwrite files from the previous version of im , but do not know if this would cause conflict,

or whether to specify somehow for php to user convert at /usr/local/bin and not on usr/bin

thanks

decided to overwrite convert of old version of im in /usr/bin with the one in /usr/local/bin and it did not work, so moved back the file to /usr/local/bin

now I lost the old conversion file and need to run the new version of im with php, it does not find it automatically in /usr/local/bin, it seems it still looks at /usr/bin
lovelf
Posts: 13
Joined: 2012-12-11T13:23:57-07:00
Authentication code: 6789

Re: Different version of imagemagick, problem with convert

Post by lovelf »

I just ended up using /usr/local/bin/convert the full path to the exec and it all worked great
Post Reply