possible bug fx escape IM 6.6.6.5

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible bug fx escape IM 6.6.6.5

Post by fmw42 »

Do I understand that now:

%[mean] and %[fx:mean] now produce the same global mean from all the channels and the same for min/minima max/maxima etc on the statistics

And to get any channel mean one would now do:

%[fx:mean.r] say for the red channel

If so at what version was this change made -- for my version trapping in my scripts (though this will generally not be a big issue).

In many ways this is nice as then to get the global mean from all channels I can do it in the fx escape and include other calculations. I don't have to do it in two steps getting the global mean from %[mean], storing it in a variable and then using it in a subsequent fx calculation.

Fred
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible bug fx escape IM 6.6.6.5

Post by magick »

The ChangeLog says:
  • 2010-11-08 6.6.5-8 Cristy <quetzlzacatenango@image...>
    * %[fx:mean] is the mean of the default channels (all but opacity) (reference
    viewtopic.php?f=1&t=17432).
So we assume the change was made in version 6.6.5-8.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible bug fx escape IM 6.6.6.5

Post by fmw42 »

Thanks. Sorry I overlooked that in the changelog.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: possible bug fx escape IM 6.6.6.5

Post by anthony »

Okay. Documentation will need to be fixed to declare channel as being 'unknown', and that the channel value needed for a calculation will need to be declared.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply