Hi Anthony,
| // $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);
|
And it works fine from the command line?
I ask because the "var=" was a very recent addition to the -fx
expressions, that is only availabe in the latest IM's
Yes, I compiled the 6.3.0 version of IM (I think...)
What are you using it for? The formula looks like it is mento to be
centered on pixel 30,50 but the multipliers moves that point to
another
location with weird quadratic effects.
Surprise... ;-) If I succeed, I'll send you the result, promise
I would not use '~' in a system command.
I tried, that is not the problem
Also I believe you should be using backquotes to execute it...
EG: $var = `....`
In which case you don't need to escape the signgle quotes.
For system you can use one quote " and then you don't need to
escape the
other quote ' inside. (or swap them) EG:
" '...' " OR ' "...." '
The quotes does not seem to be a problem. Launched from php, the
following command works
$commtest = '~/util/bin/convert -size 195x152 xc: -fx \'sqrt((-9200+
(i-30)*55+(j-50)*90)*(-9200+(i-30)*55+(j-50)*90)+12000*((i-30)*80+
(j-50)*10))/6000\' test_p_linx.png';
and generates a file of roughly 12 kB, while the following :
$commtest = '~/util/bin/convert -size 200x200 xc: -fx \'sqrt((-9200+
(i-30)*55+(j-50)*90)*(-9200+(i-30)*55+(j-50)*90)+12000*((i-30)*80+
(j-50)*10))/6000\' test_p_linx.png';
doesn't generate anything. See the difference ? Just the size of the
generated image. Again, both work from an ssh session. I don't see
why this would make any difference.
Especially as it looks like you are developing a gradient for a
positional distortion map. I am very interested in what people
come up
with for this.
It doesn't work for the moment...
Cheers
Damir
====================================
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