WriteBMPImage() outputs all black for GrayQuantum, depth 8

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.
Locked
User avatar
magick
Site Admin
Posts: 11254
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

GrayQuantum does not initialize the colormap indexes. Use IndexQuantum instead or use GrayQuantum followed by a SetImageType() to grayscale.

Locked