package imagelib

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

Install

Dune Dependency

Authors

Maintainers

Sources

imagelib-20210511.tbz
sha256=1cb94ea3731dc994c205940c9434543ce3f2470cdcb2e93a3e02ed793e80d480
sha512=29a8a483baad0aa565f8900871f684bd3a7a4a6c2f93c9a7b07864168d2b1fa4d62f5ec65150cfe1f3fff2de53c62610106ae097ba274929a4f4bf7256176c48

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.