Juicy Pixels抱怨没有足够的记忆力

PyR*_*lez 5 memory haskell image ghc ghci

$ ghci
GHCi, version 7.10.1: http://www.haskell.org/ghc/  :? for help
Prelude> import Codec.Picture
Prelude Codec.Picture> Right pic <- readImage "smiley.bmp"
<interactive>: out of memory (requested 4296015872 bytes)

smiley.bmp不到300字节.为什么我的内存不足?

Ale*_*lex 5

这是juicypixels中的一个错误,其中负高度的位图无法正确解释.

负高度应表示原点位于左上角而不是左下角.

我在这里打开了一个新的错误报告:https://github.com/Twinside/Juicy.Pixels/issues/105

多汁像素特别不支持位图.还有许多其他限制.(见https://github.com/Twinside/Juicy.Pixels/issues/96)


Tho*_*son 4

这实际上并不是一个有效的位图文件,JuicyPixels 也没有像它应该的那样对输入进行错误检查。注意尺寸...

% file smiley.bmp
smiley.bmp: PC bitmap, Windows 3.x format, 8 x -8 x 24
Run Code Online (Sandbox Code Playgroud)