FLIF-hub / FLIF

Free Lossless Image Format
Other
3.72k stars 229 forks source link

maniac/symbol.h Assertion `value>=min' failed. #105

Closed matthiaskrgr closed 8 years ago

matthiaskrgr commented 8 years ago

Trying to convert this image to flif: https://raw.githubusercontent.com/xbmc/xbmc/master/addons/skin.confluence/media/ScrollBarNib.png fails:

flif: /home/matthias/vcs/github/FLIF/transform/../maniac/symbol.h:245: void writer(SymbolCoder&, int, int, int) [with int bits = 24; SymbolCoder = SimpleSymbolBitCoder<SimpleBitChance, RacOutput24<FileIO>, 24>]: Assertion `value>=min' failed.
jonsneyers commented 8 years ago

Interesting border case example -- that image is just fully transparent, which messed up the BND computation (which is ignoring all fully transparent pixels, leaving the RGB/YIQ channels with bogus bounds)