You have to replace the apostrophes with quotation marks 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
Don't ask me why! Chris Roberts > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Jos Vos > Sent: 09 March 2007 11:47 > To: [email protected] > Subject: [magick-users] Examples from "Usage" webpages produce errors > > > 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...? > > -- > -- Jos Vos <[EMAIL PROTECTED]> > -- X/OS Experts in Open Systems BV | Phone: +31 20 6938364 > -- Amsterdam, The Netherlands | Fax: +31 20 6948204 > _______________________________________________ > Magick-users mailing list > [email protected] > http://studio.imagemagick.org/mailman/listinfo/magick-users Important: This email is sent on behalf of Trident Garages Ltd (www.tridentgarages.co.uk). Its contents are confidential to the intended recipient and may be legally privileged. If you are not the intended recipient: (1) you must not disclose, copy or distribute its contents to any other person, nor use its contents in any way; (2) please contact Trident Garages on +44 (0) 1932 874411 quoting the name of the sender and the addressee, then delete it from your system. Please accept our apologies for the inconvenience. Trident has scanned this email for viruses but does not accept any responsibility once this email has been transmitted. You should scan attachments (if any) for viruses. No contract may be concluded on behalf of Trident Garages Ltd, nor service of process accepted, by email. Trident Garages Ltd is registered in England no. 764299. Registered office at Guildford Road, Ottershaw, Surrey KT16 0NZ _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
