···11+synopsis: "Library implementing parsing of image formats such as PNG, BMP, PPM"
22+description:
33+"""
44+The imagelib library implements image formats such as PNG, BMP, and PPM in
55+OCaml, relying on only one external dependency: 'decompress'.
66+77+Unix-dependent functionality such as reading or writing to files in the
88+filesystem are packaged in the `imagelib.unix` findlib module inside this
99+OPAM package; to use it you need to include `imagelib.unix` specifically
1010+in your project's dependencies, for instance `(libraries imagelib.unix)`
1111+in your Dune file.
1212+1313+Supported image formats:
1414+ - PNG (full implementation of RFC 2083),
1515+ - PPM, PGM, PBM, ... (fully supported),
1616+ - BMP (read-only)
1717+ - JPG (only image size natively),
1818+ - GIF (only image size natively),
1919+ - There is an experimental native implementation available in the pure `ImageLib` module.
2020+ - XCF (only image size natively),
2121+ - Utility functions for handling unimplemented formats are available in
2222+ the 'imagelib.unix' findlib package and handle conversion from unsupported
2323+ image formats like JPG, GIF, XCF by converting them to PNG using the
2424+ `convert` commandline utility from `imagemagick`.
2525+2626+As imagelib only requires `decompress`, it is suitable (excluding operations
2727+requiring the `imagemagick` `convert` binary) for compilation to javascript
2828+using `js_of_ocaml`, or inclusion in MirageOS unikernels.
2929+3030+`app/imagetool.ml` contains an example binary that acts as a command-line interface to many of the functions in the library. It will be installed as `imagetool` or `imagetool.exe` if you use **opam** to install the library, and otherwise it will be in `_build/default/app/imagetool.exe`
3131+"""
3232+opam-version: "2.0"
3333+maintainer: "rodolphe.lepigre@inria.fr"
3434+bug-reports: "https://github.com/rlepigre/ocaml-imagelib/issues"
3535+homepage: "https://github.com/rlepigre/ocaml-imagelib"
3636+dev-repo: "git+https://github.com/rlepigre/ocaml-imagelib.git"
3737+authors: [
3838+ "Rodolphe Lepigre <rodolphe.lepigre@inria.fr>"
3939+]
4040+license: "GPL-3.0"
4141+doc: "https://rlepigre.github.io/ocaml-imagelib"
4242+4343+depends: [
4444+ "ocaml" { >= "4.07.0" }
4545+ "base-unix"
4646+ "dune" { >= "2.3.0" }
4747+ "decompress" { >= "1.3.0" }
4848+ "stdlib-shims"
4949+ "alcotest" { with-test }
5050+]
5151+5252+depopts: [
5353+ "crowbar" { with-test }
5454+ "afl-persistent" { with-test }
5555+]
5656+5757+build: [
5858+ [ "dune" "build" "-p" name "-j" jobs
5959+ "@install"
6060+ "@runtest" {with-test} ]
6161+]
6262+x-commit-hash: "4bfb1a17465365ed3a435ffc59932f78bba9b607"
6363+url {
6464+ src:
6565+ "https://github.com/rlepigre/ocaml-imagelib/releases/download/20210402/imagelib-20210402.tbz"
6666+ checksum: [
6767+ "sha256=b3c8ace02b10b36b6c60b3ce3ae0b9109d4a861916ec320c59cc1194f4cc86e3"
6868+ "sha512=2be7badb07a98565383d2ec6dc00599269e1127ff6467fd5d4730030dc7cff8c06027e6b54643fcd012ec3317d322e80b88456249c883c3e0bebc25b4beb0fca"
6969+ ]
7070+}