X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=www%2Ffx.html;h=93d67b2b8bee081bcc2a4428c21a5e357d4def84;hb=320dd6e7c3d46be6192087b546185b784895e2e7;hp=3d21f9286ec6feff2fed1892592a13caf329a46f;hpb=626698d76b1cd010be51c92934579eb4b89509a9;p=imagemagick diff --git a/www/fx.html b/www/fx.html index 3d21f9286..93d67b2b8 100644 --- a/www/fx.html +++ b/www/fx.html @@ -1,14 +1,14 @@ - + - + - + ImageMagick: The Fx Special Effects Image Operator @@ -23,7 +23,7 @@ - + @@ -125,13 +125,16 @@
+ - -
@@ -232,9 +229,9 @@ && (logical AND), || (logical OR), ~ (logical NOT), ?: (ternary conditional)
math functions:
-
abs(), acos(), alt(), asin(), atan(), atan2(), ceil(), cos(), cosh(), debug(), exp(), floor(), - hypot(), int(), ln(), log(), logtwo(), max(), min(), mod(), pow(), rand(), round(), - sign(), sin(), sinh(), sqrt(), tan(), tanh()
+
abs(), acos(), airy(), alt(), asin(), atan(), atan2(), ceil(), cos(), cosh(), debug(), exp(), floor(), + hypot(), int(), j0(), j1(), jinc(), ln(), log(), logtwo(), max(), min(), mod(), pow(), rand(), round(), + sign(), sin(), sinc(), sinh(), sqrt(), tan(), tanh()
channel functions:
channel(r,g,b,a), channel(c,m,y,k,a)
color names:
@@ -343,6 +340,7 @@
  • s, t, u, v, n, i, j, w, h, z, r, g, b, a, o, c, y, m, k: symbols
  • abs(x): absolute value function
  • acos(x): arc cosine function
  • +
  • airy(x): Airy function (max=1, min=0); airy(x)=[jinc(x)]2=[2*j1(pi*x)/(pi*x)]2
  • alt(x): sign alternation function (return 1.0 if int(x) is even, -1.0 if int(x) is odd)
  • asin(x): arc sine function
  • atan(x): arc tangent function
  • @@ -357,6 +355,9 @@
  • floor(x): largest integral value not greater than argument
  • hypot(x,y): the square root of x2+y2
  • int(x): greatest integer function (return greatest integer less than or equal to x)
  • +
  • j0(x): Bessel functions of x of the first kind of order 0
  • +
  • j1(x): Bessel functions of x of the first kind of order 1
  • +
  • jinc(x): jinc function (max=1, min=-0.1323); jinc(x)=2*j1(pi*x)/(pi*x)
  • ln(x): natural logarithm function
  • log(x): logarithm base 10
  • logtwo(x): logarithm base 2
  • @@ -369,6 +370,7 @@
  • round(): round to integral value, regardless of rounding direction
  • sign(x): return -1.0 if x is less than 0.0 otherwise 1.0
  • sin(x): sine function
  • +
  • sinc(x): sinc function (max=1, min=-0.21); sinc(x)=sin(pi*x)/(pi*x)
  • sinh(x): hyperbolic sine function
  • sqrt(x): square root function
  • tan(x): tangent function
  • @@ -397,7 +399,7 @@

    $magick> convert image1.jpg image2.jpg image3.jpg -fx "(u+u[2])/2.0" image.jpg

    By default, the image to which p, r, g, b, a, etc., are applied is the first image u in the image list, which may also be referenced using s.

    -

    It is important to note the special role played by the first image. This is the only image in the image sequence that is modified, any other images being used only for their data. As an illustrative example, comsider the following, and note that the setting -channel red instructs -fx to modify only the red channel; nothing in the green or blue channels will change. It is instructive to ponder why the result is not symmetric.

    +

    It is important to note the special role played by the first image. This is the only image in the image sequence that is modified, other images are used only for their data. As an illustrative example, consider the following, and note that the setting -channel red instructs -fx to modify only the red channel; nothing in the green or blue channels will change. It is instructive to ponder why the result is not symmetric.

    $magick> convert -channel red logo: -flop logo: -resize "20%" -fx "(u+v)/2" image.jpg

    @@ -469,13 +471,12 @@ Discourse Server • - Mailing Lists • - Studio + Studio