Gradients in v7

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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Gradients in v7

Post by snibgo »

v7 generates gradients with pixel values greater than 100%.

For example, with a Cygwin-compiled Q32 HDRI:

Code: Select all

%IM7DEV%magick -size 1x10 xc: -sparse-color bilinear "0,0,black 0,9,white" -precision 20 txt:
The final pixel is:

Code: Select all

0,9: (4294967296,4294967296,4294967296)  #FFFFFFFFFFFFFFFFFFFFFFFF  srgb(100.00000002328306437%,100.00000002328306437%,100.00000002328306437%)
100.00000002328306437% of 2^32 is (2^32 + 1). The values should be (2^32). IM v6.9.0-0 gives the correct values.
snibgo's IM pages: im.snibgo.com
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Gradients in v7

Post by magick »

Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ http://www.imagemagick.org/download/beta/ by sometime tomorrow.
Post Reply