string formats to fx constants
Posted: 2008-04-27T15:40:44-07:00
Just so I know how to handle things such as %[min], %[max], %[mean], %[standard-deviation] in my scripts, I don't see them any longer on http://www.imagemagick.org/script/escape.php as of 6.4.0-11, but now see image.minima, image.maxima, image.mean, image.standard_deviation on http://www.imagemagick.org/script/fx.php
Does that mean that the former are no longer available in 6.4.0-11?
If true, then I will put an IM version trap in my scripts to replace the older style with the newer style for releases >= 6.4.0-11. (I don't mean to look a gift-horse in the mouth, but when I raised the question of combining computations I did not expect that the older style would be removed completely. However, from a point of redundancy, I can understand if that is what you have done.)
Also in the former, you had %[standard-deviation] with a hyphen and now you have image.standard_deviation with an underscore. Is this correct or is there a typo?
I have not yet updated to 6.4.0-11 and am still on 6.4.0-10 and would like to understand the situation before upgrading, so I can plan on changes to my scripts.
I am also curious as to why you needed to use the "image." prefix to these variables. (Other things like intensity, hue, saturation, etc, which are also image dependent do not seem to start with "image.". I can understand why you could not use min an max, but minima and maxima do not conflict with the min and max operators)? This is not terribly important. Whatever you decided is fine and I can work with it. I am just curious about the rationale?
Thanks.
Does that mean that the former are no longer available in 6.4.0-11?
If true, then I will put an IM version trap in my scripts to replace the older style with the newer style for releases >= 6.4.0-11. (I don't mean to look a gift-horse in the mouth, but when I raised the question of combining computations I did not expect that the older style would be removed completely. However, from a point of redundancy, I can understand if that is what you have done.)
Also in the former, you had %[standard-deviation] with a hyphen and now you have image.standard_deviation with an underscore. Is this correct or is there a typo?
I have not yet updated to 6.4.0-11 and am still on 6.4.0-10 and would like to understand the situation before upgrading, so I can plan on changes to my scripts.
I am also curious as to why you needed to use the "image." prefix to these variables. (Other things like intensity, hue, saturation, etc, which are also image dependent do not seem to start with "image.". I can understand why you could not use min an max, but minima and maxima do not conflict with the min and max operators)? This is not terribly important. Whatever you decided is fine and I can work with it. I am just curious about the rationale?
Thanks.