Picture loading and serialization for Haskell
open sourceBSD-3-Clausefree
JuicyPixels is a Haskell library for loading and saving images in PNG, JPEG, BMP, GIF, TIFF, TGA and Radiance (HDR) formats. It aims to be lightweight: you load an image and get back an unboxed vector of pixels, and it can read and write PNG metadata such as text chunks, gamma and DPI. Wrappers connect it to REPA and Gloss.
Problems it solves
- load a PNG or JPEG into a pixel array in Haskell
- write generated images out as PNG files from my Haskell program
- read the DPI and text metadata of a PNG in Haskell
Features
- read and write PNG, JPEG, BMP, GIF, TIFF, TGA and Radiance images
- pixels as unboxed vectors
- PNG metadata: text chunks, gamma, DPI
- optional mmap file loading
