package imagelib

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

Install

Dune Dependency

Authors

Maintainers

Sources

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

doc/imagelib.unix/ImageUtil_unix/index.html

Module ImageUtil_unixSource

Sourceval chop_extension' : string -> string

chop_extension' fname is the same as Filename.chop_extension fname but if fname does not have an extension, fname is returned instead of raising Invalid_argument.

Sourceval get_extension : string -> string

get_extension fname returns the extension of the file fname. If the file does not have an extension, Invalid_argument is raised.

Sourceval get_extension' : string -> string

get_extension' fname is the same as get_extension fname but if fname does not have an extension, the empty string is returned and no exception is raised.

Sourceval lines_from_channel : in_channel -> string list
Sourceval lines_from_file : string -> string list
Sourceval chunk_reader_of_in_channel : in_channel -> ImageUtil.chunk_reader
Sourceval chunk_writer_of_out_channel : out_channel -> ImageUtil.chunk_writer
Sourceval chunk_reader_of_path : string -> ImageUtil.chunk_reader
Sourceval chunk_writer_of_path : string -> ImageUtil.chunk_writer

Define an output channel for the builtin buffered output on Uix. see ImageChannels for more info

OCaml

Innovation. Community. Security.