Jos Vos on wrote... | Hi, | | When trying some examples from the IM Usage website, they result in | errors. E.g. (from Usage/canvas/#gradient): | | $ convert -size 100x100 xc: \ | -fx 'xx=i/w-.5; yy=j/h-.5; rr=sqrt(xx*xx+yy*yy); 1-rr*1.42' \ | gradient_fx_radial.gif | convert: unable to parse expression `xx'. | | $ convert -size 100x100 xc: \ | -fx 'xx=i/w-.5; yy=j/h-.5; rr=xx*xx+yy*yy; 1-rr*4' \ | gradient_fx_spherical.gif | convert: unable to parse expression `xx'. | | | Are the examples wrong, or...? | No your IM is too old.
The xx= assignment was one of the later additions to IM -fx expressions allowing for much more complex problems to be solved and simpler handling of control constants. Assignments was added in IM v6.2.10 See IM Exmaples, -fx overview http://www.imagemagick.org/Usage/transform/#fx Anthony Thyssen ( System Programmer ) <[EMAIL PROTECTED]> ----------------------------------------------------------------------------- UNIX was never designed to keep people from doing stupid things, because that policy would also keep them from doing clever things. -- Doug Gwyn ----------------------------------------------------------------------------- Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/ _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
