views:

1414

answers:

2

Anyone have a recommendation for a good image processing package for Haskell? Why do you like it?

A: 

I find a lot to like in the netpbm format and tools: simplicity, simplicity, and simplicity. There's some discussion of netpbm in the Real World Haskell book, and they have some source code. Since I don't have the book, I don't know if they give a full library.

Norman Ramsey
Real World Haskell is avaliable online: http://book.realworldhaskell.org/read/
Hai
+3  A: 

There are at least two decoders in Hackage: stb-image (Partial implementation of JPEG, PNG, TGA, BMP, PSD decoders, with a really simple API) and pngload (pure Haskell loader for PNG images).

Otherwise, you could use Haskell bindings for an existing library, for instance hsmagick or gd.

There is also Codec-Image-DevIL which are Haskell bindings to DevIL library. It allows to load an image into Haskell array or to write an array as an image. Nothing else, but for reading/writing it supports tons of image formats.

jetxee