package bimage-unix

  1. Overview
  2. Docs

Module Bimage_unix.MagickSource

Magick contains image I/O operations using ImageMagick/GraphicsMagick on the command-line

Sourceval read : ?create: (string -> ('a, 'b) Bimage.Type.t -> 'c Bimage.Color.t -> int -> int -> ('a, 'b, 'c) Bimage.Image.t) -> ('a, 'b) Bimage.Type.t -> [< `Gray | `Rgb | `Rgba ] as 'c Bimage.Color.t -> ?format:string -> string -> (('a, 'b, 'c) Bimage.Image.t, Bimage.Error.t) result

read filename kind color loads an image from filename on disk using the given kind and color

Sourceval write : ?quality:int -> ?format:string -> string -> ('a, 'b, [< `Gray | `Rgb | `Rgba ]) Bimage.Image.t -> unit

write filename image saves an image to filename

Sourceval read_all : ?create: (string -> ('a, 'b) Bimage.Type.t -> 'c Bimage.Color.t -> int -> int -> ('a, 'b, 'c) Bimage.Image.t) -> ('a, 'b) Bimage.Type.t -> [< `Gray | `Rgb | `Rgba ] as 'c Bimage.Color.t -> ?format:string -> string array -> (Bimage.Input.t, Bimage.Error.t) result

Read multiple images directly into an Input array

Sourceval convert_command : string ref

convert_command contains the command used to call out to ImageMagick/GraphicsMagick. For example, if you'd like to use GraphicsMagick then set this to "gm convert"

Sourceval identify_command : string ref

identify_command contains the command used to get information about image dimensions. It defaults to itentify * but if you'd like to use GraphicsMagick then set this to "gm identify"

OCaml

Innovation. Community. Security.