Hi Anthony and Justin,

Indeed, I tried to use a simple shell script and call it from php. Didn't work either.
Herre is a snippet of the test code I'm using :

// $commtest = '~/util/bin/convert -size 195x152 xc: -fx \'cc= (i-30)*(80)-(j-50)*(-10);bb=(-9200)+(i-30)*(55)-(j-50)*(-90);(-bb-sqrt (bb*bb-(-12000)*cc))/2/(-3000)\' ~/im_virg/test_p.png';
      $commtest = "deform.sh";
// $commtest = '~/util/bin/convert -size 195x152 xc: -fx \'i/w\' ~/im_virg/test_p.png';
      exec($commtest,$output);

I also tried with system(). Same thing...

Thanks anyway for your help.

Damir

Le 22 nov. 06 à 04:50, Anthony Thyssen a écrit :

Damir Buskulic on  wrote...
| Hi everybody,
|
| I'm trying to use convert from a php script using the php exec()
| function. When I give a simple convert command like
|
| ~/util/bin/convert -size 195x152 xc: -fx 'i/w' carte_p.png
|
| it works. But when replacing the 'i/w' by something much more
| complicated, the command fails with a "9" return code. The strange
| thing is that when issuing the exact same command under a bash shell
| on the server (through an ssh connection), everything works as expected.
| The php server is configured with a 50000 max execution time and the
| privileges of the files involved are -rwxr-xr-x, which should be ok...
|
| Perhaps someone has an idea...

It is probably a quoting problem from PHP. Can you give a snipet of the
PHP code you used to make the call, and an exampe of the 'change' you
make.

  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
---------------------------------------------------------------------- -------
                 To think is human, to compute, divine.
---------------------------------------------------------------------- ------- Anthony's Home is his Castle http://www.cit.gu.edu.au/ ~anthony/

====================================
Damir Buskulic,  Universite de Savoie/LAPP
B.P. 110, F-74941 Annecy-le-Vieux Cedex, FRANCE
Tel : +33 (0)450091600
====================================


_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to