Help Needed while mogrify/convert

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
PhpDev

Help Needed while mogrify/convert

Post by PhpDev »

Hi All,

I installed ImageMagic locally (Windows OS) and it's works fine. When I uploaded the files to server (Linux) its not working. I tried with the Putty, without imageMagick root its working.

Can anybody help me how to solve this problem!

Thanks in Advance.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Help Needed while mogrify/convert

Post by Bonzo »

Try some of the code on these pages to see if ImageMagick is installed properly; another main problem can be that you have to use usr/local/bin/convert rather than convert depending on how the server is setup.

http://www.rubblewebs.co.uk/imagemagick ... server.php
PhpDev

Re: Help Needed while mogrify/convert

Post by PhpDev »

Hi,

Thanks for the reply. I executed few codes in the given site. I don't get the version of the Image magick.

You can see it here

The code is as follows

Code: Select all

echo "To display the version<br><pre>";
exec("convert -version"); 
echo "</pre>";

echo "To display the Path<br><pre>";
system('which convert',$path); print_r($path); 
echo "</pre>";
I really wonder why its working in Putty and not working using PHP code.
I used resizing the images using Image Magick, but nerver face problem like this.

Can you help to solve this problem. This is very imaportant for this site.
Thanks.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Help Needed while mogrify/convert

Post by anthony »

Looks like you found a convert, but it is not returning a version number.

Does convert location match up to that on the command line?

have you looked in the error logs, It may be missing some library paths.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
PhpDev

Re: Help Needed while mogrify/convert

Post by PhpDev »

Yeah, Yesterday I found there is an error while loading some libraries. May be the Image Magick was not installed properly. I need to contact with the Server people.

Thanks for the reply.
Post Reply