PHP EXECUTION STOPPED

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PHP EXECUTION STOPPED

Post by fmw42 »

post your PHP command
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PHP EXECUTION STOPPED

Post by fmw42 »

exec("/usr/local/ImageMagick/bin/convert uploads/filename null: filename -geometry +0+0 -layers Composite filename ")
I don't understand the purpose of this command -- it seems like it should do nothing as your are compositing a null: image at no offests (-geometry +0+0).

Can you explain what you are trying to do?

Are you sure that usr/local/ImageMagick/bin/convert is the proper path to IM

does this give you a reply?

exec("usr/local/ImageMagick/bin/convert -version")

if not try

system("which convert")

or

system("type convert")

to get the full path to convert

With regard to email replies, go to Control Panel (see link in upper left corner of window), Board Preferences, Edit Posting Defaults and check the radio button for "Notify me upon replies by default". OR just check the same checkbox (Options) at the bottom of your posting.
Last edited by fmw42 on 2010-08-09T09:16:25-07:00, edited 1 time in total.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: PHP EXECUTION STOPPED

Post by Bonzo »

As fmw42 says you comand looks a little strange; dose Imagemagick work at all on simple comands?

To display any IM errors try:

Code: Select all

<?php
$array=array();
echo "<pre>";
exec("/usr/local/ImageMagick/bin/convert uploads/filename null: filename -geometry +0+0 -layers Composite filename 2>&1", $array); 
echo "<br>".print_r($array)."<br>"; 
echo "</pre>";
?> 
Out of interest are you actualy using filename or do you have a value in there ?
Post Reply