Juicy Pixels抱怨内存不足

时间:2015-08-22 19:09:31

标签: image haskell memory 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字节。为什么我的内存不足?

1 个答案:

答案 0 :(得分:5)

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

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

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

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

相关问题