List Info

Thread: Examples from "Usage" webpages produce errors




Examples from "Usage" webpages produce errors
country flaguser name
Netherlands
2007-03-09 05:47:10
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 <josxos.nl>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20
6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20
6948204
_______________________________________________
Magick-users mailing list
Magick-usersimagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick
-users

RE: Examples from "Usage" webpages produce errors
country flaguser name
United Kingdom
2007-03-09 07:33:37
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: magick-users-bouncesimagemagick.org 
> [mailto:magick-users-bouncesimagemagick.org] On Behalf
Of Jos Vos
> Sent: 09 March 2007 11:47
> To: magick-usersimagemagick.org
> 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 <josxos.nl>
> --    X/OS Experts in Open Systems BV   |   Phone: +31
20 6938364
> --    Amsterdam, The Netherlands        |     Fax: +31
20 6948204
> _______________________________________________
> Magick-users mailing list
> Magick-usersimagemagick.org 
> 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
Magick-usersimagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick
-users

Re: Examples from "Usage" webpages produce errors
country flaguser name
Australia
2007-03-10 20:55:37
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 )    <A.Thyssengriffith.edu.au>
 -----------------------------------------------------------
------------------
   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
Magick-usersimagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick
-users

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )