Page 1 of 1

WITHDRAWN: possible bug -fx with atanh IM 6.7.4.9 Q16

Posted: 2012-01-25T19:14:26-07:00
by fmw42
IM 6.7.4.9 Q16 Mac OSX Snow Leopard.

I am not sure if this is a bug or if I am doing something wrong. But the following works with fx escapes, but fails with -fx

This seems to work:

for ((i=0; i<10; i++)); do
convert xc: -format "%[fx:atanh($i/10)]" info:
done

0
0.100335
0.202733
0.30952
0.423649
0.549306
0.693147
0.867301
1.09861
1.47222

NOTE: All but the last two values are below 1.


But this fails and gives a totally white image:

convert -size 10x1 xc: -fx "atanh($i/10)" -verbose info:

Image: xc:
Format: XC (Constant image uniform color)
Class: DirectClass
Geometry: 10x1+0+0
Resolution: 72x72
Print size: 0.138889x0.0138889
Units: Undefined
Type: Bilevel
Base type: Bilevel
Endianess: Undefined
Colorspace: RGB
Depth: 16/1-bit
Channel depth:
gray: 1-bit
Channel statistics:
Gray:
min: 65535 (1)
max: 65535 (1)
mean: 65535 (1)
standard deviation: 0 (0)
kurtosis: 0
skewness: 0

Colors: 1
Histogram:
10: (65535,65535,65535) #FFFFFFFFFFFF white

Re: possible bug -fx with atanh IM 6.7.4.9 Q16

Posted: 2012-01-26T06:09:53-07:00
by magick
We get a gray image with 'convert -size 100x100 xc: -fx "atanh(3/10)" x:' as expected. Do you?

Re: possible bug -fx with atanh IM 6.7.4.9 Q16

Posted: 2012-01-26T11:50:29-07:00
by fmw42
Withdrawn.

My mistake. :oops:

I forgot to take out the $ on the $i.

convert -size 10x1 xc: -fx "atanh($i/10)" -verbose info:

should have been


convert -size 10x1 xc: -fx "atanh(i/10)" -verbose info:


Sorry for the false alarm. I guess it was too late last night and I was not thinking straight.