imagelibversion

Library implementing parsing of image formats such as PNG, BMP, PPM

The imagelib library implements image formats such as PNG, BMP, and PPM in OCaml, relying on only one external dependency: 'decompress'.

Unix-dependent functionality such as reading or writing to files in the filesystem are packaged separately in the 'imagelib-unix' OPAM package.

Supported image formats:

  • PNG (full implementation of RFC 2083),
  • PPM, PGM, PBM, ... (fully supported),
  • BMP (read-only)
  • JPG (only image size natively, conversion to PNG otherwise),
  • GIF (only image size natively, conversion to PNG otherwise),
  • XCF (only image size natively, conversion to PNG otherwise),
  • Utility functions for handling unimplemented formats are available in the 'imagelib-unix' OPAM package. See that package description for more info.

As imagelib only requires 'decompress', it can be used together with js_of_ocaml to compile projects to Javascript, or from MirageOS unikernels.

AuthorRodolphe Lepigre <rodolphe.lepigre@inria.fr>
LicenseGPL-3.0-only
Published
Homepagehttps://github.com/rlepigre/ocaml-imagelib
Issue Trackerhttps://github.com/rlepigre/ocaml-imagelib/issues
Maintainerrodolphe.lepigre@inria.fr
Dependencies
Optional dependencies
Source [http] https://github.com/rlepigre/ocaml-imagelib/releases/download/ocaml-imagelib_20200929/imagelib-ocaml-imagelib_20200929.tbz
sha256=8af15b79cb0ad8809734531179a85f2f70d434f5f2b4ca9653bc37207b27d8f3
sha512=edce1f21ccc9fafa9242cf602bbd13fafd768fd9d614420cb462df2389a51063df6041bd4d1f84a46a5937a5ecf108c9925794d0ce453f1d5f8482ae6f3bfbb0
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/imagelib/imagelib.20200929/opam
Optionally used by