WITHDRAWN: possible bug -fx with atanh IM 6.7.4.9 Q16

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.
Post Reply
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

WITHDRAWN: possible bug -fx with atanh IM 6.7.4.9 Q16

Post 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
Last edited by fmw42 on 2012-01-26T12:15:21-07:00, edited 1 time in total.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible bug -fx with atanh IM 6.7.4.9 Q16

Post by magick »

We get a gray image with 'convert -size 100x100 xc: -fx "atanh(3/10)" x:' as expected. Do you?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible bug -fx with atanh IM 6.7.4.9 Q16

Post 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.
Post Reply