package imagelib

  1. Overview
  2. Docs
Library implementing parsing of image formats such as PNG, BMP, PPM

Install

dune-project
 Dependency

Authors

Maintainers

Sources

imagelib-20221222.tbz
sha256=050d935711a5a5cead7a6b5e2bce13297a71d0cb47652ca42ff4e328df7118fd
sha512=28dae756945adb1c6a348d5c3e61840af7efb8df16c56bdf09ee4c69231774f169384f822359999ab315cc11634392dc4811ba932479aa1fdb78d25100b6733d

doc/imagelib/ImageLib/index.html

Module ImageLibSource

Note: This module is an interface to the pure OCaml implementations of various image formats.

For an easy to use file-based interface, see the imagelib.unix findlib package distributed with imagelib. You find said interface in src/imageLib_unix.mli or in the documentation for the module ImageLib_unix.

ImageLib_unix will fall back to using imagemagick's convert utility to accomodate the manipulation of file formats that are not well supported by this library.

The GIF implementation is still experimental; the ImageLib_unix module reverts to imagemagick to avoid causing problems stemming from the premature state of the GIF stack.

Sourceval size : extension:string -> ImageUtil.chunk_reader -> int * int
Sourceval openfile : extension:string -> ImageUtil.chunk_reader -> Image.image
Sourceval openfile_streaming : extension:string -> ImageUtil.chunk_reader -> [ `GIF of ImageGIF.read_state ] option -> Image.image option * int * [ `GIF of ImageGIF.read_state ] option

see ReadImageStreaming.read_streaming

Sourceval writefile : extension:string -> ImageUtil.chunk_writer -> Image.image -> unit
Sourcemodule PPM : sig ... end
Sourcemodule PNG : sig ... end
Sourcemodule JPG : sig ... end
Sourcemodule GIF : sig ... end
Sourcemodule XCF : sig ... end
Sourcemodule BMP : sig ... end